forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-libs/libpipeline: fix for and marked ~{ppc,x86,x64}-macos
Package-Manager: portage-2.3.0
- Loading branch information
Showing
2 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
dev-libs/libpipeline/files/libpipeline-1.4.1-gnulib-darwin-program_name.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
https://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00079.html | ||
|
||
From: Margaret Lewicka <address@hidden> | ||
|
||
--- | ||
lib/error.c | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/lib/error.c b/lib/error.c | ||
index 6683197..36a3db7 100644 | ||
--- gnulib/lib/error.c | ||
+++ gnulib/lib/error.c | ||
@@ -113,9 +113,13 @@ int strerror_r (); | ||
# 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 | ||
-- | ||
2.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters