diff options
author | tradke <tradke@9697cf00-7f2a-4e1b-af3c-314b8e4b499e> | 2002-06-01 09:27:21 +0000 |
---|---|---|
committer | tradke <tradke@9697cf00-7f2a-4e1b-af3c-314b8e4b499e> | 2002-06-01 09:27:21 +0000 |
commit | fc8fe0a3dad56e9dd66fb3bb473ab275193f1f9a (patch) | |
tree | 91b0c4572d85a16395580a0826258d09774267a9 | |
parent | d402adfffe9379bb0aed04d363d028bb6da4b8b2 (diff) |
Only include <sys/ioctl.h> if it is available. This should make it compiling
under Micro$oft Windoz.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/Socket/trunk@22 9697cf00-7f2a-4e1b-af3c-314b8e4b499e
-rw-r--r-- | src/Utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Utils.c b/src/Utils.c index 504e285..573ab1f 100644 --- a/src/Utils.c +++ b/src/Utils.c @@ -21,7 +21,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/ioctl.h> #ifdef HAVE_NETDB_H #include <netdb.h> @@ -39,6 +38,9 @@ #ifdef HAVE_SYS_FILIO_H #include <sys/filio.h> #endif +#ifdef HAVE_SYS_IOCTL_H +#include <sys/ioctl.h> +#endif #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif |