Skip to content

Commit 0c4a7f8

Browse files
committed
Advise porter on where to make necessary change.
In swiftlang#1075 the change was already made for BSD (thank you!); my working edit had this guidance to ensure future porters get an error directing them where to make a necessary change. Otherwise, the FoundationEssentials build will fail and complain these variables are not defined but not have guidance as to where they are sourced from.
1 parent e9d59b6 commit 0c4a7f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/_FoundationCShims/include/_CStdlib.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@
156156
#ifndef TZDEFAULT
157157
#define TZDEFAULT "/etc/localtime"
158158
#endif /* !defined TZDEFAULT */
159+
#else
160+
#error "define TZDIR and TZDEFAULT for this platform
159161
#endif /* TARGET_OS_MAC || TARGET_OS_LINUX || TARGET_OS_BSD */
160162

161163
#endif

0 commit comments

Comments
 (0)