]> git.stg.codes - stg.git/commitdiff
Fix compilation issues on FreeBSD4 2.407-rc3
authorMaxim Mamontov <faust@gts.dp.ua>
Tue, 12 Apr 2011 12:02:40 +0000 (15:02 +0300)
committerMaxim Mamontov <faust@gts.dp.ua>
Tue, 12 Apr 2011 12:02:40 +0000 (15:02 +0300)
stglibs/ia.lib/ia.cpp
stglibs/ia.lib/ia.h

index f08c46145d1d2f6860ce9499996a5f6ab5e3cca9..9883dbbb8d276dbc2cb30db284b1a2c257f6564f 100644 (file)
     #include <winnt.h>
 #else
     #include <fcntl.h>
     #include <winnt.h>
 #else
     #include <fcntl.h>
-    #include <sys/types.h>
-    #include <sys/socket.h>
     #include <netdb.h>
     #include <netdb.h>
-    #include <netinet/in.h>
     #include <arpa/inet.h>
     #include <unistd.h>
 #endif
     #include <arpa/inet.h>
     #include <unistd.h>
 #endif
index 0a916f4cb4f86a3bc7c7e6b499d75f753a3d926f..9c8ea37f560293d9f16b0e5645b436938bb114e1 100644 (file)
@@ -28,6 +28,8 @@
 #define IA_AUTH_C_H
 
 #ifndef WIN32
 #define IA_AUTH_C_H
 
 #ifndef WIN32
+#include <sys/types.h>
+#include <sys/socket.h>
 #include <netinet/in.h>
 #include <pthread.h>
 #else
 #include <netinet/in.h>
 #include <pthread.h>
 #else