bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glob: fix includes


From: Bruno Haible
Subject: glob: fix includes
Date: Sat, 12 Apr 2008 01:07:56 +0200
User-agent: KMail/1.5.4

glob.c uses 'true' and 'false' without including <stdbool.h>. This breaks the
compilation on IRIX:

"glob.c", line 1391: error(1020): identifier "true" is undefined
              if ((flags & GLOB_ONLYDIR) && !DIRENT_MIGHT_BE_DIR (d))
                                             ^
I'm fixing it like this:


2008-04-11  Bruno Haible  <address@hidden>

        * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
        * modules/glob (Depends-on): Add stdbool.

--- lib/glob.c.orig     2008-04-12 01:06:41.000000000 +0200
+++ lib/glob.c  2008-04-12 00:59:09.000000000 +0200
@@ -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
--- modules/glob.orig   2008-04-12 01:06:41.000000000 +0200
+++ modules/glob        2008-04-12 01:06:15.000000000 +0200
@@ -16,6 +16,7 @@
 fnmatch
 getlogin_r
 mempcpy
+stdbool
 strdup
 sys_stat
 unistd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]