From: David Schmidt <david__schmidt@users.sourceforge.net>
Date: Thu, 9 Jan 2003 02:54:55 +0000 (+0000)
Subject: Tweaked to compile on Linux and Solaris via SourceForge compile farm
X-Git-Tag: v_3_1_archive_branchpoint~39
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/static/gitweb.js?a=commitdiff_plain;h=4fe9dfff9e794842d7f188ffebf59bcb45e33c06;p=privoxy.git

Tweaked to compile on Linux and Solaris via SourceForge compile farm
---

diff --git a/src/stats.c b/src/stats.c
index 0a53719b..df6f01d7 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -1,4 +1,4 @@
-const char stats_rcs[] = "$Id: stats.c,v 2.3 2002/12/30 19:56:16 david__schmidt Exp $";
+const char stats_rcs[] = "$Id: stats.c,v 2.4 2003/01/06 02:03:13 david__schmidt Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/src/stats.c,v $
@@ -33,6 +33,9 @@ const char stats_rcs[] = "$Id: stats.c,v 2.3 2002/12/30 19:56:16 david__schmidt
  *
  * Revisions   :
  *    $Log: stats.c,v $
+ *    Revision 2.4  2003/01/06 02:03:13  david__schmidt
+ *    Update stats protocol now that the console is actually running
+ *
  *
  *********************************************************************/
 
@@ -40,6 +43,7 @@ const char stats_rcs[] = "$Id: stats.c,v 2.3 2002/12/30 19:56:16 david__schmidt
 #include <string.h>
 #ifdef unix
 #include <sys/signal.h>
+#include <unistd.h>
 #include <pthread.h>
 #endif
 #include "project.h"
@@ -157,7 +161,7 @@ void init_stats_config(struct configuration_spec * config)
   /* I don't think the IPC will really work in a fork()'d environment,
    * so proceed with caution.  FIXME.
    */
-#error FIXME - stats won't work without pthreads!
+#error FIXME - stats will not work without pthreads!
   child_id = fork();
 
   if (child_id == 0)   /* child */