summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/ss/configure.in1
-rw-r--r--src/util/ss/error.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/src/util/ss/configure.in b/src/util/ss/configure.in
index 870d60ec09..8bc4bdda66 100644
--- a/src/util/ss/configure.in
+++ b/src/util/ss/configure.in
@@ -11,4 +11,5 @@ CHECK_DIRENT
CHECK_FCNTL
CHECK_WAIT_TYPE
CHECK_SIGPROCMASK
+CHECK_STDARG
AC_OUTPUT(Makefile,[EXTRA_RULES])
diff --git a/src/util/ss/error.c b/src/util/ss/error.c
index 764e88eeea..1f2d943012 100644
--- a/src/util/ss/error.c
+++ b/src/util/ss/error.c
@@ -23,12 +23,12 @@
#include "ss_internal.h"
#if (defined(_STDARG_H_) || defined(_STDARG_H))
-#define STDARG
+#define STDARG_PROTOTYPES
#endif
#ifndef __STDC__
/* we didn't get it in com_err.h if it wasn't STDC. */
-#ifndef STDARG
+#ifndef STDARG_PROTOTYPES
/* and we don't need it, either, if we're using stdarg.h... */
#include <varargs.h>
#endif
@@ -74,7 +74,7 @@ char * ss_name(sci_idx)
}
}
-#ifdef STDARG
+#ifdef STDARG_PROTOTYPES
void ss_error (int sci_idx, long code, const char * fmt, ...)
#else
void ss_error (va_alist)
@@ -83,7 +83,7 @@ void ss_error (va_alist)
{
register char const *whoami;
va_list pvar;
-#ifndef STDARG
+#ifndef STDARG_PROTOTYPES
int sci_idx;
long code;
char * fmt;