]> err.no Git - pkg-config/commitdiff
* glib-patches/remove-strsignal-prototype.diff: define _GNU_SOURCE
authorTollef Fog Heen <tfheen@err.no>
Mon, 18 Jun 2007 20:53:52 +0000 (22:53 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 18 Jun 2007 20:53:52 +0000 (22:53 +0200)
there to get strsignal prototype, addresses the rest of
Freedesktop 10652.

ChangeLog
glib-patches/remove-strsignal-prototype.diff

index f1888dc3708d20f9b589e16f504bf9ca08a11470..7da5f3487b32697a14c13d495d502212c1fb69ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-06-18  Tollef Fog Heen  <tfheen@err.no>
 
+       * glib-patches/remove-strsignal-prototype.diff: define _GNU_SOURCE
+       there to get strsignal prototype, addresses the rest of
+       Freedesktop 10652.
+
        * popt.c: Remove code calling setresuid and setreuid, pkg-config
        should not ever be suid.  Partially addresses Freedesktop #10652
 
index ce88481152300e13bbdadd0a3c718c9b52a57cd0..c7b093476f67e2fc77d7b2fd0e317e63d1741143 100644 (file)
@@ -1,5 +1,16 @@
 --- glib-1.2.8/gstrfuncs.c     2000-04-17 17:05:16.000000000 +0200
 +++ glib-1.2.8/gstrfuncs.c.new 2005-04-02 16:39:10.627002672 +0200
+@@ -38,10 +38,10 @@
+ #include <string.h>
+ #include <locale.h>
+ #include <ctype.h>            /* For tolower() */
+ #if !defined (HAVE_STRSIGNAL) || !defined(NO_SYS_SIGLIST_DECL)
+ #define _GNU_SOURCE
+ #include <signal.h>
+ #endif
+ #include "glib.h"
+ /* do not include <unistd.h> in this place since it
+  * inteferes with g_strsignal() on some OSes
 @@ -671,7 +671,6 @@
    char *msg;