diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-01-10 17:33:17 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-01-10 17:33:17 +0000 |
commit | 1990d5fb5ca844ef3c09bb0b177f3bc1ced3d924 (patch) | |
tree | 413b147e552443eae7de52faa7c999543babae13 /inet_aton.c | |
parent | 9fe38ca2b5dc37b9f47ea3f047a0b079b47c4459 (diff) |
Some initial changes for win32 support, but not all.
Added lots of #ifdef HAVE_*_H wrappers.
Added some #defines in config.h.win32
Check for more headers in configure.in
Added prototype for inet_aton() in inet_v6defs.h.
Changed "BYTE" token (i.e., #define) in ascend-gramamr.y because it
conflicts with a windows definition. Use HEXBYTE instead.
svn path=/trunk/; revision=1448
Diffstat (limited to 'inet_aton.c')
-rw-r--r-- | inet_aton.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/inet_aton.c b/inet_aton.c index 47e044678e..dd1c039d3a 100644 --- a/inet_aton.c +++ b/inet_aton.c @@ -31,13 +31,30 @@ * SUCH DAMAGE. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"; #endif /* LIBC_SCCS and not lint */ +#ifdef HAVE_SYS_PARAM_H #include <sys/param.h> +#endif + +#ifdef HAVE_NETINET_IN_H #include <netinet/in.h> +#endif + +#ifdef HAVE_WINSOCK_H +#include <winsock.h> +#endif + +#ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> +#endif + #include <ctype.h> /* |