summaryrefslogtreecommitdiffstats
path: root/defines.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-08-16 00:09:49 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-08-16 00:09:49 +0000
commit19d7b8d3fa2c73d68ed60250c091f70ec44edbec (patch)
treee63e6cb715a7dc5a22ed7a10e1ac53403ff8de34 /defines.h
parent14c62eb2beb36b2898187b89e6c5058f8942a693 (diff)
- (bal) QNX resync. OK tim@
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h26
1 files changed, 25 insertions, 1 deletions
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 <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 */