diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -25,7 +25,7 @@ | |||
25 | #ifndef _DEFINES_H | 25 | #ifndef _DEFINES_H |
26 | #define _DEFINES_H | 26 | #define _DEFINES_H |
27 | 27 | ||
28 | /* $Id: defines.h,v 1.115 2004/04/14 07:24:30 dtucker Exp $ */ | 28 | /* $Id: defines.h,v 1.116 2004/06/15 00:34:08 djm Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -462,6 +462,9 @@ struct winsize { | |||
462 | (struct cmsghdr *)NULL) | 462 | (struct cmsghdr *)NULL) |
463 | #endif /* CMSG_FIRSTHDR */ | 463 | #endif /* CMSG_FIRSTHDR */ |
464 | 464 | ||
465 | #ifndef offsetof | ||
466 | # define offsetof(type, member) ((size_t) &((type *)0)->member) | ||
467 | #endif | ||
465 | 468 | ||
466 | /* Function replacement / compatibility hacks */ | 469 | /* Function replacement / compatibility hacks */ |
467 | 470 | ||