Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 2009 14:02:56 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 160697 for review
Message-ID:  <200904161402.n3GE2uma012853@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=160697

Change 160697 by rwatson@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904161402.n3GE2uma012853>