From 19d7b8d3fa2c73d68ed60250c091f70ec44edbec Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Thu, 16 Aug 2001 00:09:49 +0000 Subject: - (bal) QNX resync. OK tim@ --- defines.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'defines.h') diff --git a/defines.h b/defines.h index 397a5443..4fa846e9 100644 --- a/defines.h +++ b/defines.h @@ -1,7 +1,7 @@ #ifndef _DEFINES_H #define _DEFINES_H -/* $Id: defines.h,v 1.69 2001/08/12 03:02:51 djm Exp $ */ +/* $Id: defines.h,v 1.70 2001/08/16 00:09:50 mouring Exp $ */ /* Necessary headers */ @@ -46,6 +46,15 @@ #include /* Struct winsize */ #include /* For O_NONBLOCK */ +/* *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively */ +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_LOGIN_H +# include +#endif + + /* Constants */ #ifndef SHUT_RDWR @@ -126,6 +135,11 @@ enum # define S_IRWXO 0000007 /* read, write, execute */ #endif /* S_IXUSR */ +/* *-*-nto-qnx doesn't define this constant in the system headers */ +#ifdef MISSING_NFDBITS +# define NFDBITS (8 * sizeof(unsigned long)) +#endif + /* Types */ /* If sys/types.h does not supply intXX_t, supply them ourselves */ @@ -280,6 +294,11 @@ struct winsize { }; #endif +/* *-*-nto-qnx does not define this type in the system headers */ +#ifdef MISSING_FD_MASK + typedef unsigned long int fd_mask; +#endif + /* Paths */ #ifndef _PATH_BSHELL @@ -386,6 +405,11 @@ struct winsize { (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) #endif /* SUN_LEN */ +/* *-*-nto-qnx doesn't define this macro in the system headers */ +#ifdef MISSING_HOWMANY +# define howmany(x,y) (((x)+((y)-1))/(y)) +#endif + /* Function replacement / compatibility hacks */ /* In older versions of libpam, pam_strerror takes a single argument */ -- cgit v1.2.3