summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
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 397a5443f..4fa846e99 100644
--- a/defines.h
+++ b/defines.h
@@ -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.69 2001/08/12 03:02:51 djm Exp $ */ 4/* $Id: defines.h,v 1.70 2001/08/16 00:09:50 mouring Exp $ */
5 5
6/* Necessary headers */ 6/* Necessary headers */
7 7
@@ -46,6 +46,15 @@
46#include <termios.h> /* Struct winsize */ 46#include <termios.h> /* Struct winsize */
47#include <fcntl.h> /* For O_NONBLOCK */ 47#include <fcntl.h> /* For O_NONBLOCK */
48 48
49/* *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively */
50#ifdef HAVE_STRINGS_H
51# include <strings.h>
52#endif
53#ifdef HAVE_LOGIN_H
54# include <login.h>
55#endif
56
57
49/* Constants */ 58/* Constants */
50 59
51#ifndef SHUT_RDWR 60#ifndef SHUT_RDWR
@@ -126,6 +135,11 @@ enum
126# define S_IRWXO 0000007 /* read, write, execute */ 135# define S_IRWXO 0000007 /* read, write, execute */
127#endif /* S_IXUSR */ 136#endif /* S_IXUSR */
128 137
138/* *-*-nto-qnx doesn't define this constant in the system headers */
139#ifdef MISSING_NFDBITS
140# define NFDBITS (8 * sizeof(unsigned long))
141#endif
142
129/* Types */ 143/* Types */
130 144
131/* If sys/types.h does not supply intXX_t, supply them ourselves */ 145/* If sys/types.h does not supply intXX_t, supply them ourselves */
@@ -280,6 +294,11 @@ struct winsize {
280}; 294};
281#endif 295#endif
282 296
297/* *-*-nto-qnx does not define this type in the system headers */
298#ifdef MISSING_FD_MASK
299 typedef unsigned long int fd_mask;
300#endif
301
283/* Paths */ 302/* Paths */
284 303
285#ifndef _PATH_BSHELL 304#ifndef _PATH_BSHELL
@@ -386,6 +405,11 @@ struct winsize {
386 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) 405 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
387#endif /* SUN_LEN */ 406#endif /* SUN_LEN */
388 407
408/* *-*-nto-qnx doesn't define this macro in the system headers */
409#ifdef MISSING_HOWMANY
410# define howmany(x,y) (((x)+((y)-1))/(y))
411#endif
412
389/* Function replacement / compatibility hacks */ 413/* Function replacement / compatibility hacks */
390 414
391/* In older versions of libpam, pam_strerror takes a single argument */ 415/* In older versions of libpam, pam_strerror takes a single argument */