From: David Schmidt <david__schmidt@users.sourceforge.net>
Date: Thu, 2 Oct 2003 15:17:07 +0000 (+0000)
Subject: Adjust stat.h header for Windows build
X-Git-Tag: v_3_1_archive_branchpoint~6
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/@default-cgi@send-stylesheet?a=commitdiff_plain;h=87841eff19a78714712fd07604a81f712b4544f5;p=privoxy.git

Adjust stat.h header for Windows build
---

diff --git a/src/loadcfg.c b/src/loadcfg.c
index 67ec5261..3471d561 100644
--- a/src/loadcfg.c
+++ b/src/loadcfg.c
@@ -1,4 +1,4 @@
-const char loadcfg_rcs[] = "$Id: loadcfg.c,v 2.4 2002/12/28 03:58:19 david__schmidt Exp $";
+const char loadcfg_rcs[] = "$Id: loadcfg.c,v 2.5 2003/09/22 00:33:01 david__schmidt Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/src/loadcfg.c,v $
@@ -35,6 +35,11 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 2.4 2002/12/28 03:58:19 david__schm
  *
  * Revisions   :
  *    $Log: loadcfg.c,v $
+ *    Revision 2.5  2003/09/22 00:33:01  david__schmidt
+ *    Enable sending a custom 'blocked' image.  Shows up as
+ *    "image-blocker-custom-file" parameter in config, and
+ *    "+set-image-blocker{custom}" in action files.
+ *
  *    Revision 2.4  2002/12/28 03:58:19  david__schmidt
  *    Initial drop of dashboard instrumentation - enabled with
  *    --enable-activity-console
@@ -326,6 +331,7 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 2.4 2002/12/28 03:58:19 david__schm
 
 #include <stdio.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <stdlib.h>
 #include <string.h>
 #include <signal.h>
@@ -349,17 +355,16 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 2.4 2002/12/28 03:58:19 david__schm
 /* VC++ has "_snprintf", not "snprintf" */
 #define snprintf _snprintf
 
-#else /* ifndef _WIN32 */
+#else /* every platform but _WIN32 */
 
 #ifndef __OS2__
 # include <unistd.h>
 # include <sys/wait.h>
-#endif
+#endif /* ndef __OS2__ */
 # include <sys/time.h>
-# include <sys/stat.h>
 # include <signal.h>
 
-#endif
+#endif /* ndef _WIN32 */
 
 #include "loadcfg.h"
 #include "list.h"