compile sstrsep only if HAVE_FORK is defined; patch supplied by Johan Gill <johane...
authorNils Larsch <nils@openssl.org>
Wed, 2 Nov 2005 22:13:43 +0000 (22:13 +0000)
committerNils Larsch <nils@openssl.org>
Wed, 2 Nov 2005 22:13:43 +0000 (22:13 +0000)
apps/speed.c

index 474f20c5a401f73d34c9c079b1abbe97ff87b997..7082c37ccc15ae98a38b74d6ad06da78f5e5611e 100644 (file)
@@ -2522,6 +2522,7 @@ static void print_result(int alg,int run_no,int count,double time_used)
        results[alg][run_no]=((double)count)/time_used*lengths[run_no];
        }
 
+#ifdef HAVE_FORK
 static char *sstrsep(char **string, const char *delim)
     {
     char isdelim[256];
@@ -2553,7 +2554,6 @@ static char *sstrsep(char **string, const char *delim)
     return token;
     }
 
-#ifdef HAVE_FORK
 static int do_multi(int multi)
        {
        int n;