diff options
author | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-15 14:58:30 +0000 |
---|---|---|
committer | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-15 14:58:30 +0000 |
commit | bfe254118a86c702569647f81c4b793caf8c5964 (patch) | |
tree | 240be9fb23eb36367662588dd4bca02524d5cd5b | |
parent | 9ca8518895939d3ae82c937bed7f2b545a9f9e39 (diff) |
Rationalising headers and checking #ifdefs for their presence.
You'll probably need to get the latest lib/make/configure etc and do a
-config before this will compile for you again.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@10 1faa4e14-9dd3-4be0-9f0e-ffe519881164
-rw-r--r-- | src/Sockets.c | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/Sockets.c b/src/Sockets.c index 1ee3753..a4a6875 100644 --- a/src/Sockets.c +++ b/src/Sockets.c @@ -10,19 +10,28 @@ @version $Header$ @@*/ +#include "cctk.h" + #include <stdio.h> -#include <errno.h> #include <stdlib.h> +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif /* HAVE_UNISTD_H */ +#ifdef HAVE_SYS_TIME_H +#include <sys/time.h> +#endif /* HAVE_SYS_TIME_H */ +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#endif /* HAVE_SYS_TYPES_H */ +#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> +#endif /* HAVE_SYS_SOCKET_H */ +#ifdef HAVE_NETINET_IN_H #include <netinet/in.h> -#include <netdb.h> -#include <arpa/inet.h> -#include <sys/time.h> -#include <sys/types.h> - -#include "cctk.h" +#endif /* HAVE_NETINET_IN_H */ +#ifdef HAVE_WINSOCK2_H +#include <winsock2.h> +#endif /* HAVE_WINSOCK2_H */ #include "httpd.h" |