Преглед на файлове

add winsock if you've got it, regardless of whether you're msv

svn:r2573
Roger Dingledine преди 21 години
родител
ревизия
c4c6ee7d61
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      src/common/util.h

+ 3 - 0
src/common/util.h

@@ -24,6 +24,9 @@
 #error "It seems your platform does not represent NULL as zero. We can't cope."
 #endif
 
+#ifdef HAVE_WINSOCK_H
+#include <winsock.h>
+#endif
 #if _MSC_VER > 1300
 #include <winsock2.h>
 #include <ws2tcpip.h>