* released 1.1.12
* fixed stats monitoring, and optimized some tv_* for most common cases.
* replaced temporary 'newhdr' with 'trash' to reduce stack size
* made HTTP errors more HTML-fiendly.
* renamed strlcpy() to strlcpy2() because of a slightly difference between
their behaviour (return value), to avoid confusion.
* restricted HTTP messages to HTTP proxies only
* added a 502 message when the connection has been refused by the server,
to prevent clients from believing this is a zero-byte HTTP 0.9 reply.
* changed 'Cache-control:' from 'no-cache="set-cookie"' to 'private' when
inserting a cookie, because some caches (apache) don't understand it.
* fixed processing of server headers when client is in SHUTR state
* automatically close fd's 0,1 and 2 when going daemon ; setpgrp() after
setpgid()
* updated the Makefile and the Formilux build script
diff --git a/Makefile b/Makefile
index 88ed19c..70d5008 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,12 @@
+# Select target OS. TARGET must match a system for which COPTS and LIBS are
+# correctly defined below.
+# You can set it on make's command line. eg: make TARGET=solaris
+TARGET = linux24
+#TARGET = linux22
+#TARGET = solaris
+#TARGET = solarisv9
+#TARGET = openbsd
+
CC = gcc
LD = gcc
@@ -10,20 +19,17 @@
LIBS.linux22 =
# This is for Solaris 8
-COPTS.solaris = -O2 -fomit-frame-pointer -DSOLARIS -DHAVE_STRLCPY
+COPTS.solaris = -O2 -fomit-frame-pointer -DSOLARIS
LIBS.solaris = -lnsl -lsocket
+# This is for Solaris 8 on UltraSparc2 processor
+COPTS.solarisv9 = -O6 -mcpu=v9 -fomit-frame-pointer -DSOLARIS
+LIBS.solarisv9 = -lnsl -lsocket
+
# This is for OpenBSD 3.0
-COPTS.openbsd = -O2 -DHAVE_STRLCPY
+COPTS.openbsd = -O2
LIBS.openbsd =
-# Select target OS. TARGET must match a system for which COPTS and LIBS are
-# correctly defined above.
-TARGET = linux24
-#TARGET = linux22
-#TARGET = solaris
-#TARGET = openbsd
-
#DEBUG =
DEBUG = -g