summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-01-02 14:24:56 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-01-02 14:24:56 +0000
commite47b16943a26fbdbaadd95f4cf9d98fe80bac4fa (patch)
treecca978ac57d6b8a710d6bbcd89020a22aedbaf99 /sys-process/psmisc/files
parentMarking valknut-0.4.9 ppc64 for bug 297186 (diff)
downloadhistorical-e47b16943a26fbdbaadd95f4cf9d98fe80bac4fa.tar.gz
historical-e47b16943a26fbdbaadd95f4cf9d98fe80bac4fa.tar.bz2
historical-e47b16943a26fbdbaadd95f4cf9d98fe80bac4fa.zip
Fix building with -O0 where glibc doesn't include locale.h by itself wrt #299316.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'sys-process/psmisc/files')
-rw-r--r--sys-process/psmisc/files/psmisc-22.9-locale.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-process/psmisc/files/psmisc-22.9-locale.patch b/sys-process/psmisc/files/psmisc-22.9-locale.patch
new file mode 100644
index 000000000000..1346d099b1c7
--- /dev/null
+++ b/sys-process/psmisc/files/psmisc-22.9-locale.patch
@@ -0,0 +1,16 @@
+http://bugs.gentoo.org/show_bug.cgi?id=299316
+http://sourceforge.net/tracker/?func=detail&aid=2922163&group_id=15273&atid=115273
+
+--- psmisc-22.9/src/killall.c
++++ psmisc-22.9/src/killall.c
+@@ -44,6 +44,10 @@
+ #include <ctype.h>
+ #include <assert.h>
+
++#ifdef HAVE_LOCALE_H
++#include <locale.h>
++#endif
++
+ #ifdef WITH_SELINUX
+ #include <selinux/selinux.h>
+ #endif /*WITH_SELINUX*/