Hi, all.

I am trying to build Pacemaker-Python-GUI on Heartbeat and Pacemaker
dev tree. But it use strnlen() function but not define _GNU_SOURCE.
So, in my environment RHEL 5.1 build is failed. In my research if use
--enable-ansi, it is defined. But its default is yes, without
--enable-ansi not effective, So, I add the patch.
But it may be correct way and I think that the _GNU_SOURCE is define
for without --enable-ansi.

Regards
MATSUDA, Daiki
--- Pacemaker-Python-GUI-bca804ec4fac/configure.in.orig	2008-02-15 11:01:34.000000000 +0900
+++ Pacemaker-Python-GUI-bca804ec4fac/configure.in	2008-02-15 11:01:15.000000000 +0900
@@ -1257,7 +1257,7 @@
 
 dnl Add any system specific options here.
 
-	if test "${enable_ansi}" = "unknown"; then
+	if test "${enable_ansi}" = "unknown" -o "${enable_ansi}x" = "x"; then
         	enable_ansi=yes
         fi
 
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to