summaryrefslogtreecommitdiff
path: root/Xtrans.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-03-03 08:42:45 +0100
committerHans de Goede <hdegoede@redhat.com>2014-03-26 12:05:58 +0100
commitf20a9bb2ea25408ce9f1166b3b6e48759960fe86 (patch)
treecff7d23c33e20cf97b3a8085abf2c2ac6e3c3c68 /Xtrans.c
parent3f0de269abe59353acbd7a5587d68ce0da91db67 (diff)
configure: Also add -D_DEFAULT_SOURCE to .pc cflags to shut up glibc warnings
The latest glibc considers _BSD_SOURCE deprecated, leading to the following warning being issued for pretty much every C-file in the xserver: In file included from /usr/include/stdint.h:25:0, from /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdint.h:9, from ../include/misc.h:81, from miexpose.c:82: /usr/include/features.h:145:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^ I've discussed this with the glibc developers and the prefered way of fixing this is by also defining _DEFAULT_SOURCE which is the new way of stating _BSD_SOURCE / _SVID_SOURCE . Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org> Tested-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Diffstat (limited to 'Xtrans.c')
0 files changed, 0 insertions, 0 deletions