-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add necessary missing TARGET_OS_BSD directives. #2990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci test |
@@ -1649,7 +1649,7 @@ int _CFOpenFile(const char *path, int opts) { | |||
} | |||
|
|||
CF_CROSS_PLATFORM_EXPORT void *_CFReallocf(void *ptr, size_t size) { | |||
#if TARGET_OS_WIN32 || TARGET_OS_LINUX | |||
#if TARGET_OS_WIN32 || TARGET_OS_LINUX || defined(__OpenBSD__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth adding a TARGET_OS_OPENBSD
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it would be worth it. There shouldn't be too many points of divergence. Here, FreeBSD has reallocf and OpenBSD doesn't.
@swift-ci test linux |
Test failure appears unrelated, I think. |
@swift-ci test linux |
@swift-ci test |
ef1c56e
to
51865df
Compare
A number of Foundation tests are failing on OpenBSD due to these missing directives, or are required for other reasons. Fuller Foundation support will be completed in other commits.
51865df
to
9ac5bbc
Compare
Directives added for CFUtilities.c while we are here. @spevans can we retest and merge if everything else is OK? |
@swift-ci test |
A number of Foundation tests are failing on OpenBSD due to these missing
directives, or are required for other reasons.
There is still more complex work to get full support for Foundation on
this platform but this will be handled in other commits.