forked from macports/macports-ports
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2fab58
commit 3369288
Showing
4 changed files
with
30 additions
and
31 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
graphics/dcmtk/files/0001-ofstub.cc-fix-environ-for-Apple.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,25 @@ | ||
From 881965da18dee93aa38570a0d2fe292c37365bd8 Mon Sep 17 00:00:00 2001 | ||
From: Sergey Fedorov <[email protected]> | ||
Date: Fri, 13 Dec 2024 17:03:57 +0800 | ||
Subject: [PATCH] ofstub.cc: fix environ for Apple | ||
|
||
--- | ||
ofstd/libsrc/ofstub.cc | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git ofstd/libsrc/ofstub.cc ofstd/libsrc/ofstub.cc | ||
index c1df7068e..bba147e26 100644 | ||
--- ofstd/libsrc/ofstub.cc | ||
+++ ofstd/libsrc/ofstub.cc | ||
@@ -141,6 +141,11 @@ static OFString getLastErrorString() | ||
return OFString(); | ||
} | ||
|
||
+#elif defined(__APPLE__) | ||
+ | ||
+#include <crt_externs.h> | ||
+#define environ (*_NSGetEnviron()) | ||
+ | ||
#else /* _WIN32 */ | ||
|
||
extern char** environ; // required to exist by the Single Unix Specification |
File renamed without changes.
This file was deleted.
Oops, something went wrong.