Include unistd.h in sig2str.c for Tru64 as it defines SIGRTMIN and

SIGRTMAX in terms of sysconf(), which is prototyped in unistd.h.
Bug #621; from Daniel Richard G.
This commit is contained in:
Todd C. Miller
2013-11-19 09:48:01 -07:00
parent 054a94e6c9
commit 0a47860ef7
3 changed files with 4 additions and 3 deletions

View File

@@ -37,6 +37,7 @@
# include <strings.h>
#endif /* HAVE_STRINGS_H */
#include <signal.h>
#include <unistd.h>
#include "missing.h"

4
configure vendored
View File

@@ -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

View 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