diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _DEFINES_H | 1 | #ifndef _DEFINES_H |
2 | #define _DEFINES_H | 2 | #define _DEFINES_H |
3 | 3 | ||
4 | /* $Id: defines.h,v 1.71 2001/09/15 11:31:54 djm Exp $ */ | 4 | /* $Id: defines.h,v 1.72 2001/09/20 19:43:41 stevesk Exp $ */ |
5 | 5 | ||
6 | /* Necessary headers */ | 6 | /* Necessary headers */ |
7 | 7 | ||
@@ -12,7 +12,7 @@ | |||
12 | #include <netinet/in.h> /* For IPv6 macros */ | 12 | #include <netinet/in.h> /* For IPv6 macros */ |
13 | #include <netinet/ip.h> /* For IPTOS macros */ | 13 | #include <netinet/ip.h> /* For IPTOS macros */ |
14 | #ifdef HAVE_SYS_UN_H | 14 | #ifdef HAVE_SYS_UN_H |
15 | # include <sys/un.h> /* For SUN_LEN */ | 15 | # include <sys/un.h> /* For sockaddr_un */ |
16 | #endif | 16 | #endif |
17 | #ifdef HAVE_SYS_BITYPES_H | 17 | #ifdef HAVE_SYS_BITYPES_H |
18 | # include <sys/bitypes.h> /* For u_intXX_t */ | 18 | # include <sys/bitypes.h> /* For u_intXX_t */ |
@@ -405,11 +405,6 @@ struct winsize { | |||
405 | # define __attribute__(x) | 405 | # define __attribute__(x) |
406 | #endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ | 406 | #endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ |
407 | 407 | ||
408 | #ifndef SUN_LEN | ||
409 | #define SUN_LEN(su) \ | ||
410 | (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) | ||
411 | #endif /* SUN_LEN */ | ||
412 | |||
413 | /* *-*-nto-qnx doesn't define this macro in the system headers */ | 408 | /* *-*-nto-qnx doesn't define this macro in the system headers */ |
414 | #ifdef MISSING_HOWMANY | 409 | #ifdef MISSING_HOWMANY |
415 | # define howmany(x,y) (((x)+((y)-1))/(y)) | 410 | # define howmany(x,y) (((x)+((y)-1))/(y)) |