]> granicus.if.org Git - sudo/commitdiff
Preliminary changes to support nsr-tandem-nsk. Based on patches from
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 May 2004 20:08:46 +0000 (20:08 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 May 2004 20:08:46 +0000 (20:08 +0000)
Tom Bates.

check.c
compat.h

diff --git a/check.c b/check.c
index 3b9d2b46ffb9c23068af8ac08362286419adb4ed..e450e47667975a3af73a642c9cae53f4c087e57d 100644 (file)
--- a/check.c
+++ b/check.c
@@ -23,7 +23,9 @@
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/stat.h>
-#include <sys/file.h>
+#ifndef __TANDEM
+# include <sys/file.h>
+#endif
 #include <stdio.h>
 #ifdef STDC_HEADERS
 # include <stdlib.h>
index ff5b8ebc7654deedb4a9ef9f9af16d9b7be8eb77..25818a3ad400aebb07b6566dcffd011c9337fba6 100644 (file)
--- a/compat.h
+++ b/compat.h
 #endif /* S_IRWXU */
 
 /*
- * In case this is not defined in <sys/types.h> or <sys/select.h>
+ * In case these are not defined in <sys/types.h> or <sys/select.h>
  */
 #ifndef howmany
 # define howmany(x, y) (((x) + ((y) - 1)) / (y))
 #endif
+#ifndef NFDBITS
+# define NFDBITS       32
+# define fd_mask       int
+#endif
 
 /*
  * These should be defined in <unistd.h> but not everyone has them.