summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-04-26 19:53:45 +0000
committerStef Walter <stef@memberwebs.com>2005-04-26 19:53:45 +0000
commitd558a844149b8303538a8e7b60f8d5009eaa82d7 (patch)
treeaefd84d482034c71761a39f1b3b7470c953faeeb /src
parent1226811e4aead186d1c94dd190c6a40ea4ec4c2d (diff)
Solaris compatibility patches
Diffstat (limited to 'src')
-rw-r--r--src/clamsmtpd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/clamsmtpd.c b/src/clamsmtpd.c
index a0198a5..93d773f 100644
--- a/src/clamsmtpd.c
+++ b/src/clamsmtpd.c
@@ -39,13 +39,11 @@
#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 <err.h>
#include "usuals.h"
@@ -153,6 +151,10 @@ static int clam_scan_file(clctx_t* ctx, const char** virus);
* STARTUP ETC...
*/
+#ifndef HAVE___ARGV
+char** __argv;
+#endif
+
int main(int argc, char* argv[])
{
const char* configfile = DEFAULT_CONFIG;
@@ -163,6 +165,10 @@ int main(int argc, char* argv[])
int r;
char* t;
+#ifndef HAVE___ARGV
+ __argv = argv;
+#endif
+
/* Configuration defaults */
memset(&g_clstate, 0, sizeof(g_clstate));
g_clstate.directory = _PATH_TMP;