aboutsummaryrefslogtreecommitdiffstats
path: root/testing/open-vm-tools/codeset-uclibc.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-08 09:45:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-08 09:45:25 +0000
commit836efa79e6397dda69543c7b553e33f5bcf2d615 (patch)
tree4b72cd280d512f4e3af8ffba58cadcd27566ff9d /testing/open-vm-tools/codeset-uclibc.patch
parent38c4ccd875603ddc883e6bdb30f8e062f3ac1734 (diff)
downloadaports-836efa79e6397dda69543c7b553e33f5bcf2d615.tar.bz2
aports-836efa79e6397dda69543c7b553e33f5bcf2d615.tar.xz
testing/open-vm-tools: new aport
The Open Virtual Machine Tools are the open source implementation of VMware Tools. http://open-vm-tools.sourceforge.net/
Diffstat (limited to 'testing/open-vm-tools/codeset-uclibc.patch')
-rw-r--r--testing/open-vm-tools/codeset-uclibc.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/open-vm-tools/codeset-uclibc.patch b/testing/open-vm-tools/codeset-uclibc.patch
new file mode 100644
index 0000000000..b26df16611
--- /dev/null
+++ b/testing/open-vm-tools/codeset-uclibc.patch
@@ -0,0 +1,20 @@
+--- ./lib/misc/codesetOld.c.orig
++++ ./lib/misc/codesetOld.c
+@@ -723,7 +723,7 @@
+ {
+ char *codeset;
+
+-#if defined(__linux__)
++#if defined(__linux__) && !defined(__UCLIBC__)
+
+ locale_t new = newlocale(LC_CTYPE_MASK, "", NULL);
+ if (!new) {
+@@ -739,7 +739,7 @@
+ codeset = Util_SafeStrdup(nl_langinfo_l(CODESET, new));
+ freelocale(new);
+
+-#elif defined(sun)
++#elif defined(sun) || defined(__UCLIBC__)
+
+ char *locale = setlocale(LC_CTYPE, NULL);
+ if (!setlocale(LC_CTYPE, "")) {