]> granicus.if.org Git - sudo/commitdiff
The howmany macro lives in sys/sysmacros.h on SVR5 systems
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 19 Feb 2011 13:19:35 +0000 (08:19 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 19 Feb 2011 13:19:35 +0000 (08:19 -0500)
Closes Bug 470

--HG--
branch : 1.7

config.h.in
configure
configure.in
exec.c
exec_pty.c
sudoreplay.c

index 2a7f22d3b426f84167adebab7e9ae2660bae25fc..a4b000db0a3e1f9fbd4db5b12d8d2f22e1cc1811 100644 (file)
 /* Define to 1 if you have the <sys/stropts.h> header file. */
 #undef HAVE_SYS_STROPTS_H
 
+/* Define to 1 if you have the <sys/sysmacros.h> header file. */
+#undef HAVE_SYS_SYSMACROS_H
+
 /* Define to 1 if you have the <sys/types.h> header file. */
 #undef HAVE_SYS_TYPES_H
 
index d64d12949a2ae5be597204470d8402709391bd0f..3abc212a0ae04ad8d69487bbd75ca43d56ef012f 100755 (executable)
--- a/configure
+++ b/configure
@@ -14086,7 +14086,7 @@ $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
 
 fi
 
-for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h
+for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
index 3eac9dabb920a87e8415d5c623975ad8203991b0..b8e35b3544600787ac984bca2b388fbff5f468ea 100644 (file)
@@ -1898,7 +1898,7 @@ dnl
 AC_HEADER_STDC
 AC_HEADER_DIRENT
 AC_HEADER_TIME
-AC_CHECK_HEADERS(malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h)
+AC_CHECK_HEADERS(malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h)
 dnl
 dnl Check for large file support.  HP-UX 11.23 has a broken sys/type.h
 dnl when large files support is enabled so work around it.
diff --git a/exec.c b/exec.c
index 65a3abefb7a8f7c0615b73d037a18492fafa36bd..af54d30adc93167a7322bfb1704b90e8ff95636c 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -18,6 +18,9 @@
 
 #include <sys/types.h>
 #include <sys/param.h>
+#ifdef HAVE_SYS_SYSMACROS_H
+# include <sys/sysmacros.h>
+#endif
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/time.h>
index 7677e9236a089967693706444ebbc230a530faae..cca9f880bb6629eee1bc8efc7e243450de7b34b5 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <sys/types.h>
 #include <sys/param.h>
+#ifdef HAVE_SYS_SYSMACROS_H
+# include <sys/sysmacros.h>
+#endif
 #include <sys/socket.h>
 #include <sys/time.h>
 #include <sys/wait.h>
index 12fcd12091564a796d824a3010593e90daed1ed8..1232cea7469c0d9f2596e4ba808695db749875d1 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <sys/types.h>
 #include <sys/param.h>
+#ifdef HAVE_SYS_SYSMACROS_H
+# include <sys/sysmacros.h>
+#endif
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/wait.h>