changeset 9892:0b3ccf361045

Include stdbool, for 'true' and 'false'.
author Bruno Haible <bruno@clisp.org>
date Sat, 12 Apr 2008 01:07:35 +0200
parents 03fc23d91d4e
children ec6e90aaf2d7
files ChangeLog lib/glob.c modules/glob
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-11  Bruno Haible  <bruno@clisp.org>
+
+	* lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
+	* modules/glob (Depends-on): Add stdbool.
+
 2008-04-11  Bruno Haible  <bruno@clisp.org>
 
 	* lib/trim.c: Include <string.h>.
--- a/lib/glob.c
+++ b/lib/glob.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2002, 2003, 2004, 2005, 2006, 2007
+/* Copyright (C) 1991-2002, 2003, 2004, 2005, 2006, 2007, 2008
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -32,6 +32,8 @@
 /* #define NDEBUG 1 */
 #include <assert.h>
 
+#include <stdbool.h>
+
 #include <stdio.h>		/* Needed on stupid SunOS for assert.  */
 
 #if !defined _LIBC || !defined GLOB_ONLY_P
--- a/modules/glob
+++ b/modules/glob
@@ -16,6 +16,7 @@
 fnmatch
 getlogin_r
 mempcpy
+stdbool
 strdup
 sys_stat
 unistd