From owner-p4-projects@FreeBSD.ORG Thu Apr 16 14:02:57 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2B9A610656EA; Thu, 16 Apr 2009 14:02:57 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D77D110656EC for ; Thu, 16 Apr 2009 14:02:56 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AA5B08FC27 for ; Thu, 16 Apr 2009 14:02:56 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n3GE2uq8012855 for ; Thu, 16 Apr 2009 14:02:56 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n3GE2uma012853 for perforce@freebsd.org; Thu, 16 Apr 2009 14:02:56 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 16 Apr 2009 14:02:56 GMT Message-Id: <200904161402.n3GE2uma012853@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 160697 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 14:02:58 -0000 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