Subject: Re: [libssh2] #224: make failed at misc.c

Re: [libssh2] #224: make failed at misc.c

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Mon, 14 May 2012 17:52:31 -0000

#224: make failed at misc.c
---------------------+----------------------
  Reporter: ongtim | Owner: bagder
      Type: defect | Status: reopened
  Priority: normal | Milestone: 1.5.0
 Component: misc | Version:
Resolution: | Keywords:
Blocked By: | Blocks:
---------------------+----------------------

Comment (by bagder):

 What about this patch?

 {{{
 From b3244ea30d035da699bc4dd74ec280a186aaee9e Mon Sep 17 00:00:00 2001
 From: Daniel Stenberg <daniel_at_haxx.se>
 Date: Mon, 14 May 2012 19:51:06 +0200
 Subject: [PATCH] gettimeofday: no need for a replacement under cygwin

 ---
  src/misc.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

 diff --git a/src/misc.h b/src/misc.h
 index bcb7d0e..e25248d 100644
 --- a/src/misc.h
 +++ b/src/misc.h
 @@ -78,7 +78,7 @@ void _libssh2_htonu32(unsigned char *buf, uint32_t val);
  void _libssh2_store_u32(unsigned char **buf, uint32_t value);
  void _libssh2_store_str(unsigned char **buf, const char *str, size_t
 len);

 -#if defined(LIBSSH2_WIN32) && !defined(__MINGW32__)
 +#if defined(LIBSSH2_WIN32) && !defined(__MINGW32__) &&
 !defined(__CYGWIN__)
  /* provide a private one */
  #undef HAVE_GETTIMEOFDAY
  int __cdecl _libssh2_gettimeofday(struct timeval *tp, void *tzp);
 --
 1.7.10

 }}}

-- 
Ticket URL: <http://trac.libssh2.org/ticket/224#comment:6>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-05-14