diff options
author | Stef Walter <stef@memberwebs.com> | 2005-09-08 16:42:48 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2005-09-08 16:42:48 +0000 |
commit | 9a52321f7a775b6ccb15fa0cdec791614db3dc94 (patch) | |
tree | 00cf09306fe31c66b839c8c0b61de77de65c50ec /src/proxsmtpd.c | |
parent | f2de0ff5f1ae1cadf8693d91a3e323df8900a346 (diff) |
Bring some Solaris changes over from ClamSMTP.
Diffstat (limited to 'src/proxsmtpd.c')
-rw-r--r-- | src/proxsmtpd.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/proxsmtpd.c b/src/proxsmtpd.c index fbd5d25..e0d438e 100644 --- a/src/proxsmtpd.c +++ b/src/proxsmtpd.c @@ -39,14 +39,12 @@ #include <sys/param.h> #include <sys/wait.h> -#include <paths.h> #include <ctype.h> #include <stdio.h> #include <unistd.h> #include <syslog.h> #include <errno.h> #include <fcntl.h> -#include <err.h> #include <signal.h> #include "usuals.h" @@ -122,6 +120,10 @@ static int wait_process(spctx_t* sp, pid_t pid, int* status); * STARTUP ETC... */ +#ifndef HAVE___ARGV +char** __argv; +#endif + int main(int argc, char* argv[]) { const char* configfile = DEFAULT_CONFIG; @@ -131,6 +133,10 @@ int main(int argc, char* argv[]) int r; char* t; +#ifndef HAVE___ARGV + __argv = argv; +#endif + /* Setup some defaults */ memset(&g_pxstate, 0, sizeof(g_pxstate)); g_pxstate.directory = _PATH_TMP; |