diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -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 <termios.h> /* Struct winsize */ #include <fcntl.h> /* For O_NONBLOCK */ +/* *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively */ +#ifdef HAVE_STRINGS_H +# include <strings.h> +#endif +#ifdef HAVE_LOGIN_H +# include <login.h> +#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 */ |