PERFORCE change 160697 for review
Robert Watson
rwatson at FreeBSD.org
Thu Apr 16 07:02:58 PDT 2009
http://perforce.freebsd.org/chv.cgi?CH=160697
Change 160697 by rwatson at rwatson_cinnamon on 2009/04/16 14:02:21
Define _GNU_SOURCE so that we can use strcasecmp() on Linux.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/config/config.h.in#17 edit
.. //depot/projects/trustedbsd/openbsm/configure#53 edit
.. //depot/projects/trustedbsd/openbsm/configure.ac#52 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/config/config.h.in#17 (text+ko) ====
@@ -192,6 +192,9 @@
/* Version number of package */
#undef VERSION
+/* Use extended API on platforms that require it */
+#undef _GNU_SOURCE
+
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
==== //depot/projects/trustedbsd/openbsm/configure#53 (xtext) ====
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#50 .
+# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#51 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.62 for OpenBSM 1.1.
#
@@ -20602,6 +20602,12 @@
done
+
+cat >>confdefs.h <<\_ACEOF
+#define _GNU_SOURCE /**/
+_ACEOF
+
+
# Checks for typedefs, structures, and compiler characteristics.
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
==== //depot/projects/trustedbsd/openbsm/configure.ac#52 (text+ko) ====
@@ -3,7 +3,7 @@
AC_PREREQ(2.59)
AC_INIT([OpenBSM], [1.1], [trustedbsd-audit at TrustesdBSD.org],[openbsm])
-AC_REVISION([$P4: //depot/projects/trustedbsd/openbsm/configure.ac#51 $])
+AC_REVISION([$P4: //depot/projects/trustedbsd/openbsm/configure.ac#52 $])
AC_CONFIG_SRCDIR([bin/auditreduce/auditreduce.c])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_HEADER([config/config.h])
@@ -37,6 +37,8 @@
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([endian.h mach/mach.h machine/endian.h sys/endian.h stdint.h])
+AC_DEFINE([_GNU_SOURCE],,[Use extended API on platforms that require it])
+
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
More information about the p4-projects
mailing list