Emmanuel Dreyfus <manu@...> wrote:
> Would you contribute a configure test for that? Build a test with
> strtok_r with and without -D_REENTRANT, using -Werror, and if the second
> fail, add -D_REENTRANT to CFLAGS. There is a similar test in
> configure.ac for -D__EXTENSIONS__, you just have to copy/paste it.
Hum, the -D_REENTRANT test is already there, but it was buggy. Try this
patch, run autoconf and rebuild.
Index: configure.ac
===================================================================
RCS file: /cvsroot/milter-greylist/configure.ac,v
retrieving revision 1.142
diff -U2 -r1.142 configure.ac
--- configure.ac 19 Mar 2005 07:41:09 -0000 1.142
+++ configure.ac 26 Mar 2005 15:45:40 -0000
@@ -287,5 +288,5 @@
],[[
- (void)localtime(NULL);
+ (void)localtime_r(NULL);
]])], [dreentrant=no],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
@@ -293,5 +294,5 @@
#include <stdio.h>
],[[
- (void)localtime(NULL);
+ (void)localtime_r(NULL);
]])],
[SAVEDCFLAGS=$SAVEDCFLAGS" -D_REENTRANT";
--
Emmanuel Dreyfus
Publicité subliminale: achetez ce livre!
http://www.eyrolles.com/Informatique/Livre/9782212114638/livre-bsd.php
manu@...Message
Re: [milter-greylist] Re: sync.c:local_addr() use
2005-03-26 by manu@netbsd.org
Attachments
- No local attachments were found for this message.