Fix last change for Windows.
authorWerner Koch <wk@gnupg.org>
Wed, 7 Oct 2009 11:17:57 +0000 (11:17 +0000)
committerWerner Koch <wk@gnupg.org>
Wed, 7 Oct 2009 11:17:57 +0000 (11:17 +0000)
src/ChangeLog
src/priv-io.h

index df973ef5b1f192a8855d804bdb7fae9bfcf0bb2a..a0b0581d13f9dee0b6ae5156fa48abbebcd366f2 100644 (file)
@@ -1,3 +1,7 @@
+2009-10-07    <wk@g10code.com>
+
+       * priv-io.h [W32]: Include windows.h instead of sys/socket.h.
+
 2009-08-06  Werner Koch  <wk@g10code.com>
 
        * op-support.c (_gpgme_parse_inv_recp): Allow for no fingerprint.
index 3f2f96ac2060c73fa9045e3ed11f9cf757602ae5..8d216955397028074f68d927b1ca4c3eaebfc5a8 100644 (file)
 #ifndef IO_H
 #define IO_H
 
-#include <sys/socket.h>
+#ifdef HAVE_W32_SYSTEM
+# include <windows.h>
+#else
+# include <sys/socket.h>
+#endif
 
 /* A single file descriptor passed to spawn.  For child fds, dup_to
    specifies the fd it should become in the child, but only 0, 1 and 2