Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
20 lines
715 B
Diff
20 lines
715 B
Diff
--- a/sw_vers.c 2021-04-19 13:06:50.131346864 +0900
|
|
+++ b/sw_vers.c 2021-04-19 13:07:32.481967474 +0900
|
|
@@ -28,7 +28,15 @@
|
|
*/
|
|
|
|
#include <CoreFoundation/CoreFoundation.h>
|
|
-#include <CoreFoundation/CFPriv.h>
|
|
+
|
|
+// Avoid dependency on CoreFoundation/CFPriv, which no longer appears to be
|
|
+// part of the upstream sdk.
|
|
+
|
|
+CFDictionaryRef _CFCopyServerVersionDictionary(void);
|
|
+CFDictionaryRef _CFCopySystemVersionDictionary(void);
|
|
+extern CFStringRef _kCFSystemVersionProductNameKey;
|
|
+extern CFStringRef _kCFSystemVersionProductVersionKey;
|
|
+extern CFStringRef _kCFSystemVersionBuildVersionKey;
|
|
|
|
void usage(char *progname) {
|
|
fprintf(stderr, "Usage: %s [-productName|-productVersion|-buildVersion]\n", progname);
|