Commit 8cda82b7 authored by Chengwei Yang's avatar Chengwei Yang Committed by Simon McVittie

cmake: do not bind to any particular POSIX C standard

This caused build failures on FreeBSD. Defining _POSIX_C_SOURCE to
a particular version will disable common non-POSIX extensions like
PF_UNIX, and on some systems will also disable features of later
POSIX versions, like IPv6. If we don't ask for a specific version,
we'll get some sort of sensible default.

Bug: default avatarChengwei Yang <>
[made the commit message more concise -smcv]
Reviewed-by: default avatarSimon McVittie <>
parent 61ef4139
......@@ -103,7 +103,7 @@ find_package(EXPAT)
# analogous to AC_USE_SYSTEM_EXTENSIONS in
add_definitions(-D_POSIX_C_SOURCE=199309L -D_GNU_SOURCE)
# do config checks
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment