summaryrefslogtreecommitdiff
path: root/cmake/config.h.in
diff options
context:
space:
mode:
authorkhng300 <khng300@gmail.com>2020-12-07 15:10:46 +0800
committerGitHub <noreply@github.com>2020-12-07 08:10:46 +0100
commit6426ae47c902f3061dbc3c4c816a4bbbe692fa92 (patch)
treeb609d51218ff7a8f7aa2a7177fe960b577f5257d /cmake/config.h.in
parent5504310039c09dd21919817aa93ef67647a5d758 (diff)
downloadccache-6426ae47c902f3061dbc3c4c816a4bbbe692fa92.tar.gz
Fix missing isascii() declaration on FreeBSD (#730)
Diffstat (limited to 'cmake/config.h.in')
-rw-r--r--cmake/config.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/config.h.in b/cmake/config.h.in
index be65c0a9..5151e053 100644
--- a/cmake/config.h.in
+++ b/cmake/config.h.in
@@ -27,11 +27,13 @@
// features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable them.
#cmakedefine _DARWIN_C_SOURCE
-// Define to activate features from IEEE Stds 1003.1-2001.
+// Define to activate features from IEEE Stds 1003.1-2008.
#define _POSIX_C_SOURCE 200809L
#if defined(__SunOS_5_8) || defined(__SunOS_5_9) || defined(__SunOS_5_10)
# define _XOPEN_SOURCE 500
+#elif defined(__FreeBSD__)
+# define _XOPEN_SOURCE 700
#elif !defined(__SunOS_5_11) && !defined(__APPLE__)
# define _XOPEN_SOURCE
#endif