summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/psmisc/files/psmisc-21.4-no-nls-selinux.patch')
-rw-r--r--sys-apps/psmisc/files/psmisc-21.4-no-nls-selinux.patch72
1 files changed, 72 insertions, 0 deletions
diff --git a/sys-apps/psmisc/files/psmisc-21.4-no-nls-selinux.patch b/sys-apps/psmisc/files/psmisc-21.4-no-nls-selinux.patch
new file mode 100644
index 000000000000..8485845f1d8e
--- /dev/null
+++ b/sys-apps/psmisc/files/psmisc-21.4-no-nls-selinux.patch
@@ -0,0 +1,72 @@
+--- src/fuser.c.mps 2004-06-08 18:21:33 +0200
++++ src/fuser.c 2004-06-08 18:27:13 +0200
+@@ -31,9 +31,13 @@
+ #include <linux/kdev_t.h> /* for MKDEV */
+ #include <linux/major.h> /* for LOOP_MAJOR */
+ #endif
++#ifdef USE_NLS
+ #include <libintl.h>
+ #include <locale.h>
+ #define _(String) gettext (String)
++#else
++#define _(String) (String)
++#endif
+
+ #include "comm.h"
+ #include "loop.h" /* for loop_info */
+@@ -1007,9 +1011,11 @@ main (int argc, char **argv)
+ no_files = 1;
+
+ /* Setup the i18n */
++#ifdef USE_NLS
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
++#endif
+
+ if (argc < 2)
+ usage ();
+--- src/killall.c.mps 2004-06-08 18:21:38 +0200
++++ src/killall.c 2004-06-08 18:26:51 +0200
+@@ -26,9 +26,13 @@
+ #include <selinux/selinux.h>
+ #endif /*WITH_SELINUX*/
+
++#ifdef USE_NLS
+ #include <libintl.h>
+ #include <locale.h>
+ #define _(String) gettext (String)
++#else
++#define _(String) (String)
++#endif
+
+ #include "comm.h"
+ #include "signals.h"
+@@ -461,10 +465,12 @@
+ pidof = strcmp (name, "killall");
+ sig_num = SIGTERM;
+
++#ifdef USE_NLS
+ /* Setup the i18n */
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
++#endif
+
+ opterr = 0;
+ #ifdef WITH_SELINUX
+--- src/pstree.c.mps 2004-06-08 18:27:39 +0200
++++ src/pstree.c 2004-06-08 18:28:03 +0200
+@@ -22,8 +22,12 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
++#ifdef USE_NLS
+ #include <libintl.h>
+ #define _(String) gettext (String)
++#else
++#define _(String) (String)
++#endif
+
+ #include "comm.h"
+