]> granicus.if.org Git - sudo/commitdiff
Include unistd.h in sig2str.c for Tru64 as it defines SIGRTMIN and
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 19 Nov 2013 16:48:01 +0000 (09:48 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 19 Nov 2013 16:48:01 +0000 (09:48 -0700)
SIGRTMAX in terms of sysconf(), which is prototyped in unistd.h.
Bug #621; from Daniel Richard G.

compat/sig2str.c
configure
configure.ac

index 6c9cd396648322436922613e41bebeb4170f8107..d698df1e1ec9d274b475f2b4c41daa3b5e8a4476 100644 (file)
@@ -37,6 +37,7 @@
 # include <strings.h>
 #endif /* HAVE_STRINGS_H */
 #include <signal.h>
+#include <unistd.h>
 
 #include "missing.h"
 
index 7f0ecd9d3ec835222c5928c0dfccc79fc5fbcfeb..06cb7a6e64565602ee91c24d93fc0b9c80fc3eac 100755 (executable)
--- a/configure
+++ b/configure
@@ -14901,8 +14901,8 @@ $as_echo "no" >&6; }
 
 $as_echo "#define NO_VARIADIC_MACROS 1" >>confdefs.h
 
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your C compiler doesn't support variadic macros, debugging support will be limited" >&5
-$as_echo "$as_me: WARNING: Your C compiler doesn't support variadic macros, debugging support will be limited" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your C preprocessor doesn't support variadic macros, debugging support will be limited" >&5
+$as_echo "$as_me: WARNING: Your C preprocessor doesn't support variadic macros, debugging support will be limited" >&2;}
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
index 682e25fbe54384f080fe67598f8d2074b39cdab6..c9e3a6822327211ecbbdb25b0c8361df51ff7ec2 100644 (file)
@@ -2077,7 +2077,7 @@ AC_INCLUDES_DEFAULT
 ], [sudo_fprintf(stderr, "a %s", "test");])], [AC_MSG_RESULT([yes])],
 [AC_MSG_RESULT([no])
  AC_DEFINE([NO_VARIADIC_MACROS], [1], [Define if your C preprocessor does not support variadic macros.])
- AC_MSG_WARN([Your C compiler doesn't support variadic macros, debugging support will be limited])])
+ AC_MSG_WARN([Your C preprocessor doesn't support variadic macros, debugging support will be limited])])
 
 dnl
 dnl Program checks