From d558a844149b8303538a8e7b60f8d5009eaa82d7 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 26 Apr 2005 19:53:45 +0000 Subject: Solaris compatibility patches --- src/clamsmtpd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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 #include -#include #include #include #include #include #include -#include #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; -- cgit v1.2.3