]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] disable warning about localtime_r on Solaris
authorWilly Tarreau <w@1wt.eu>
Sat, 3 Nov 2007 15:18:11 +0000 (16:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 3 Nov 2007 15:18:11 +0000 (16:18 +0100)
Solaris only declares localtime_r() if _REENTRANT is defined. Update
the makefile to silent the warning.

Makefile

index e0aca9b349a9f2343428b4f991e2933b6d495510..5fa8622a75f30375d3af308174034a42e0ecc498 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ COPTS.linux22 = -DUSE_GETSOCKNAME
 LIBS.linux22 =
 
 # This is for Solaris 8
-COPTS.solaris = -fomit-frame-pointer -DFD_SETSIZE=65536
+COPTS.solaris = -fomit-frame-pointer -DFD_SETSIZE=65536 -D_REENTRANT
 LIBS.solaris = -lnsl -lsocket
 
 # CPU dependant optimizations