]> git.ipfire.org Git - thirdparty/curl.git/commit
macOS: fix taget detection
authorStefan Eissing <stefan@eissing.org>
Mon, 10 Jul 2023 07:39:19 +0000 (09:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Jul 2023 22:14:40 +0000 (00:14 +0200)
commitc73b2f8207b3f8670a3294c80f1791c4eb9bb586
tree3bab631769c0134216ec4409ba5b6c6512ee2ca8
parentc7308592fb8ba213fc2c1bb6ad39781df45bd84a
macOS: fix taget detection

- TARGET_OS_OSX is not always defined on macOS
- this leads to missing symbol Curl_macos_init()
- TargetConditionals.h seems to define these only when
  dynamic targets are enabled (somewhere?)
- this PR fixes that on my macOS 13.4.1
- I have no clue why CI builds worked without it

Follow-up to c7308592fb8ba213fc2c1
Closes #11417
lib/curl_setup.h
lib/macos.c
lib/macos.h