summaryrefslogtreecommitdiffstats
path: root/src/clients/ksu/setenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/ksu/setenv.c')
-rw-r--r--src/clients/ksu/setenv.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/clients/ksu/setenv.c b/src/clients/ksu/setenv.c
index 7563454b8..286721446 100644
--- a/src/clients/ksu/setenv.c
+++ b/src/clients/ksu/setenv.c
@@ -19,8 +19,16 @@
#include <sys/types.h>
#include <stdio.h>
+#include <stdlib.h>
-static char *_findenv();
+static char *_findenv(char *, int *);
+
+#ifndef HAVE_SETENV
+extern int setenv(char *, char *, int);
+#endif
+#ifndef HAVE_UNSETENV
+extern void unsetenv(char *);
+#endif
/*
* setenv --
@@ -37,7 +45,6 @@ setenv(name, value, rewrite)
static int alloced; /* if allocated space before */
register char *C;
int l_value, offset;
- char *malloc(), *realloc();
if (*value == '=') /* no `=' in value */
++value;