diff options
author | Bill Nottingham <notting@redhat.com> | 2001-06-27 19:19:20 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-06-27 19:19:20 +0000 |
commit | cbc13e29ffad5919714c73a9c295c1fefa3b1708 (patch) | |
tree | f29acde7bbc989c0e8f05d09cced7ed1a4640bc1 /src | |
parent | 1aaee3c9fcbb7c0326ffb404acd0820ccf7c6477 (diff) | |
download | initscripts-cbc13e29ffad5919714c73a9c295c1fefa3b1708.tar initscripts-cbc13e29ffad5919714c73a9c295c1fefa3b1708.tar.gz initscripts-cbc13e29ffad5919714c73a9c295c1fefa3b1708.tar.bz2 initscripts-cbc13e29ffad5919714c73a9c295c1fefa3b1708.tar.xz initscripts-cbc13e29ffad5919714c73a9c295c1fefa3b1708.zip |
fix 64-bit brokeness
Diffstat (limited to 'src')
-rw-r--r-- | src/ipcalc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipcalc.c b/src/ipcalc.c index da452d3b..56b5ae87 100644 --- a/src/ipcalc.c +++ b/src/ipcalc.c @@ -20,6 +20,7 @@ #include <stdlib.h> #include <string.h> #include <sys/socket.h> +#include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> @@ -28,12 +29,12 @@ \def IPBITS \brief the number of bits in an IP address. */ -#define IPBITS (sizeof(unsigned long int) * 8) +#define IPBITS (sizeof(u_int32_t) * 8) /*! \def IPBYTES \brief the number of bytes in an IP address. */ -#define IPBYTES (sizeof(unsigned long int)) +#define IPBYTES (sizeof(u_int32_t)) /*! |