aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 2f0bf870a..d0e64a27e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -67,6 +67,18 @@ typedef struct _Options {
int updateDB;
} Options;
+/* Solaris has been reported to have no setenv
+ * putenv() will automatically overwrite, so
+ * the overwrite macro will go unused
+ */
+#ifndef setenv
+#define setenv(name,value,overwrite) { \
+ char * tmp = NULL; \
+ sprintf(tmp,"%s=%s",name,value); \
+ putenv(tmp); \
+}
+#endif /* setenv */
+
void usage(char * argv[]) {
ERROR("usage:\n");
ERROR(" %s [options] <conf file>\n",argv[0]);