bug-gnulib
[Top][All Lists]
Advanced

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

regex.c need not include sys/types.h


From: Paul Eggert
Subject: regex.c need not include sys/types.h
Date: Wed, 24 Aug 2005 16:42:52 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

I installed this:

2005-08-24  Paul Eggert  <address@hidden>

        * srclist.txt: Comment out lib/regex.c.  Add glibc bug 1238.
        * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
        requires this.  (The code never needed it.)

--- config/srclist.txt  24 Aug 2005 23:29:39 -0000      1.83
+++ config/srclist.txt  24 Aug 2005 23:40:45 -0000
@@ -102,7 +102,8 @@ $LIBCSRC/stdlib/getsubopt.c         lib gpl
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1237
 #$LIBCSRC/posix/regcomp.c              lib gpl
 #
-$LIBCSRC/posix/regex.c                 lib gpl
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1238
+#$LIBCSRC/posix/regex.c                        lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1201
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1207
--- lib/regex.c 7 Jul 2005 08:08:39 -0000       1.90
+++ lib/regex.c 24 Aug 2005 23:40:45 -0000
@@ -70,10 +70,6 @@
 # include "../locale/localeinfo.h"
 #endif
 
-/* POSIX says that <sys/types.h> must be included (by the caller) before
-   <regex.h>.  */
-#include <sys/types.h>
-
 /* On some systems, limits.h sets RE_DUP_MAX to a lower value than
    GNU regex allows.  Include it before <regex.h>, which correctly
    #undefs RE_DUP_MAX and sets it to the right value.  */




reply via email to

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