![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 // All this crap just to include type SOCKET 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 #if defined(_WIN32) 00013 typedef int socklen_t; 00014 // IP_DONTFRAGMENT is different between winsock 1 and winsock 2. Therefore, Winsock2.h must be linked againt Ws2_32.lib 00015 // winsock.h must be linked against WSock32.lib. If these two are mixed up the flag won't work correctly 00016 #include <winsock2.h> 00017 #else 00018 #define closesocket close 00019 #include <unistd.h> 00020 #include <sys/types.h> 00021 #include <sys/socket.h> 00022 #include <netinet/in.h> 00023 #include <arpa/inet.h> 00024 #include <netdb.h> 00025 #include <unistd.h> 00026 #include <fcntl.h> 00027 #define INVALID_SOCKET -1 00028 //#include "RakMemoryOverride.h" 00030 typedef int SOCKET; 00031 #endif
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.