termux-packages/packages/oleo/dcgettext.c.patch
Henrik Grimler 1845139603 oleo: fix redefinition error of getcwd
Building a debug build of oleo fails due to getcwd being redefined.

%ci:no-build
2021-02-04 20:45:06 +01:00

12 lines
422 B
Diff

--- ../dcgettext.c.orig 2021-02-04 19:26:04.839747458 +0000
+++ ./intl/dcgettext.c 2021-02-04 19:26:39.223307963 +0000
@@ -86,7 +86,7 @@
/* @@ end of prolog @@ */
-#ifdef _LIBC
+#if defined(_LIBC) || defined(__BIONIC__)
/* Rename the non ANSI C functions. This is required by the standard
because some ANSI C functions will require linking with this object
file and the name space must not be polluted. */