summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/et/configure.in1
-rw-r--r--src/util/et/error_table.y6
2 files changed, 2 insertions, 5 deletions
diff --git a/src/util/et/configure.in b/src/util/et/configure.in
index 093511251..f5200944c 100644
--- a/src/util/et/configure.in
+++ b/src/util/et/configure.in
@@ -8,5 +8,6 @@ AC_PROG_RANLIB
HAVE_YYLINENO
DECLARE_SYS_ERRLIST
CHECK_STDARG
+AC_HAVE_HEADERS(stdlib.h)
CopySrcHeader(com_err.h,$(BUILDTOP)/include)
AC_OUTPUT(Makefile,[EXTRA_RULES])
diff --git a/src/util/et/error_table.y b/src/util/et/error_table.y
index 03e705653..f411d3ff8 100644
--- a/src/util/et/error_table.y
+++ b/src/util/et/error_table.y
@@ -1,12 +1,8 @@
%{
#include <stdio.h>
char *str_concat(), *ds(), *quote();
-#ifndef __STDC__
-#ifdef _AIX
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
-#else
-char *malloc(), *realloc();
-#endif
#endif
char *current_token = (char *)NULL;
extern char *table_name;