summaryrefslogtreecommitdiff
path: root/dev-db/tinycdb/files/tinycdb-uclibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/tinycdb/files/tinycdb-uclibc.patch')
-rw-r--r--dev-db/tinycdb/files/tinycdb-uclibc.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-db/tinycdb/files/tinycdb-uclibc.patch b/dev-db/tinycdb/files/tinycdb-uclibc.patch
new file mode 100644
index 000000000000..14e56bd7b6fc
--- /dev/null
+++ b/dev-db/tinycdb/files/tinycdb-uclibc.patch
@@ -0,0 +1,15 @@
+--- a/cdb.c
++++ b/cdb.c
+@@ -31,6 +31,12 @@
+ # define HAVE_PROGRAM_INVOCATION_SHORT_NAME
+ #endif
+
++#ifdef __UCLIBC__
++# ifndef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
++# undef HAVE_PROGRAM_INVOCATION_SHORT_NAME
++# endif
++#endif
++
+ #ifdef HAVE_PROGRAM_INVOCATION_SHORT_NAME
+ # define progname program_invocation_short_name
+ #else