summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2005-07-23 15:12:30 +0000
committerNed Ludd <solar@gentoo.org>2005-07-23 15:12:30 +0000
commit72a9c6b17b4dd21df7d721517ce2434e889ae856 (patch)
treedc7d3026471c51a8058d3d03a212e404d73f912b /sys-apps/eject/files
parentinitial version of eclass for vdr-plugins (diff)
downloadgentoo-2-72a9c6b17b4dd21df7d721517ce2434e889ae856.tar.gz
gentoo-2-72a9c6b17b4dd21df7d721517ce2434e889ae856.tar.bz2
gentoo-2-72a9c6b17b4dd21df7d721517ce2434e889ae856.zip
- handle uclibc minimal exceptions when i18n/nls/gettext is not active
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-apps/eject/files')
-rw-r--r--sys-apps/eject/files/eject-2.0.13-i18n-uclibc.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-apps/eject/files/eject-2.0.13-i18n-uclibc.patch b/sys-apps/eject/files/eject-2.0.13-i18n-uclibc.patch
new file mode 100644
index 000000000000..6e7348b101ea
--- /dev/null
+++ b/sys-apps/eject/files/eject-2.0.13-i18n-uclibc.patch
@@ -0,0 +1,28 @@
+--- i18n.h.orig 2005-07-23 10:40:55.000000000 -0400
++++ i18n.h 2005-07-23 10:41:00.000000000 -0400
+@@ -7,9 +7,11 @@
+ 程式國際化設計: 謝崑中
+ */
+
++#include <features.h>
+ #ifndef __i18n__
+- #define __i18n__
+ #define PKG "eject"
++ # ifndef __UCLIBC__
++ #define __i18n__
+ #define LOCALEDIR "/usr/share/locale"
+
+ #include <locale.h>
+@@ -17,7 +19,11 @@
+ #define _(str) gettext (str)
+ #define N_(str) (str)
+ #define I18NCODE setlocale(LC_ALL,""); textdomain(PKG); bindtextdomain(PKG,LOCALEDIR);
+-
++ #else
++ #define _(str) (str)
++ #define N_(str) (str)
++ #define I18NCODE
++ #endif
+ void i18n_init (void);
+ #endif
+