aboutsummaryrefslogtreecommitdiffstats
path: root/examples/loadables/getconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/loadables/getconf.c')
-rw-r--r--examples/loadables/getconf.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/loadables/getconf.c b/examples/loadables/getconf.c
index fc1c1d1..5d079b6 100644
--- a/examples/loadables/getconf.c
+++ b/examples/loadables/getconf.c
@@ -49,10 +49,19 @@
#endif
#include <stdio.h>
+#ifdef HAVE_LIMITS_H
#include <limits.h>
+#endif
+#ifdef HAVE_LOCALE_H
#include <locale.h>
+#endif
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <errno.h>
+
+#include "typemax.h"
+
#include "bashansi.h"
#include "shell.h"
#include "builtins.h"
@@ -857,7 +866,6 @@ static const struct conf_variable conf_table[] =
static int num_getconf_variables = sizeof(conf_table) / sizeof(struct conf_variable) - 1;
extern char *this_command_name;
-extern char *xmalloc ();
extern char **make_builtin_argv ();
static void getconf_help ();