Index: src/globals.h
===================================================================
RCS file: /cvsroot/squid/squid/src/globals.h,v
retrieving revision 1.14.6.1
diff -u -p -r1.14.6.1 globals.h
--- src/globals.h	30 Mar 2002 16:57:49 -0000	1.14.6.1
+++ src/globals.h	14 Jul 2002 08:56:32 -0000
@@ -86,7 +86,9 @@ extern int opt_dns_tests;	/* 1 */
 extern int opt_foreground_rebuild;	/* 0 */
 extern int opt_forwarded_for;	/* 1 */
 extern int opt_reload_hit_only;	/* 0 */
+#if HAVE_SYSLOG
 extern int opt_syslog_enable;	/* 0 */
+#endif
 extern int opt_udp_hit_obj;	/* 0 */
 extern int opt_create_swap_dirs;	/* 0 */
 extern int opt_store_doublecheck;	/* 0 */
Index: src/main.c
===================================================================
RCS file: /cvsroot/squid/squid/src/main.c,v
retrieving revision 1.28.6.3
diff -u -p -r1.28.6.3 main.c
--- src/main.c	23 Jun 2002 13:56:26 -0000	1.28.6.3
+++ src/main.c	14 Jul 2002 08:56:33 -0000
@@ -206,8 +206,13 @@ mainParseOptions(int argc, char *argv[])
 #endif
 	    }
 	case 's':
+#if HAVE_SYSLOG
 	    opt_syslog_enable = 1;
 	    break;
+#else
+	    fatal("Logging to syslog not available on this platform");
+	    /* NOTREACHED */
+#endif
 	case 'u':
 	    icpPortNumOverride = atoi(optarg);
 	    if (icpPortNumOverride < 0)

