cmake: do not bind to any particular POSIX C standard
authorChengwei Yang <chengwei.yang@intel.com>
Fri, 28 Jun 2013 12:26:28 +0000 (20:26 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 1 Jul 2013 11:18:11 +0000 (12:18 +0100)
commit8cda82b726349b8f0a719a9945541e253b3f2118
tree5e6cfcd2c87baaa7a0598333f121f91471c5539b
parent61ef4139c42718296a162f7aceb6391643ec2fa4
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: https://bugs.freedesktop.org/show_bug.cgi?id=66257
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
[made the commit message more concise -smcv]
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
cmake/CMakeLists.txt