summaryrefslogtreecommitdiff
path: root/data/libpipeline/program_name.diff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-12-16 11:53:39 -1000
committerSam Bingner <sam@bingner.com>2018-12-16 11:53:39 -1000
commitc6d29d6469f3f92141cc05d5c55d082ef409ce2d (patch)
tree701d0a298e3717588571affbe7564dd43ed328de /data/libpipeline/program_name.diff
parent570d423532176c39518f3978a203250bef41cfef (diff)
Add libgdbm and libpipeline
Diffstat (limited to 'data/libpipeline/program_name.diff')
-rw-r--r--data/libpipeline/program_name.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/data/libpipeline/program_name.diff b/data/libpipeline/program_name.diff
new file mode 100644
index 000000000..f9d92c542
--- /dev/null
+++ b/data/libpipeline/program_name.diff
@@ -0,0 +1,17 @@
+diff -ur libpipeline-1.5.0/gnulib/lib/error.c libpipeline-1.5.0+iPhone/gnulib/lib/error.c
+--- libpipeline-1.5.0/gnulib/lib/error.c 2014-08-03 03:31:22.000000000 -1000
++++ libpipeline-1.5.0+iPhone/gnulib/lib/error.c 2018-12-14 11:20:28.000000000 -1000
+@@ -110,9 +110,13 @@
+ # endif
+ # endif
+
++#if defined __APPLE__ && defined __MACH__
++#define program_name (((char **)*_NSGetArgv())[0])
++#else
+ /* The calling program should define program_name and set it to the
+ name of the executing program. */
+ extern char *program_name;
++#endif
+
+ # if HAVE_STRERROR_R || defined strerror_r
+ # define __strerror_r strerror_r