From 4c148e5f74f764bccbe8b519494addb4aa0d79d0 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Tue, 11 Sep 2012 22:50:13 +0300 Subject: Tune the definitions needed when building with -ansi. The current definitions were mostly useful to glibc and followed its feature_test_macros(3) documentation. However, this means other platforms still had problems when building with strict compilation flags. _BSD_SOURCE, for example, is only recognized by glibc, and other platforms sometimes need _XOPEN_SOURCE instead, or even the removal of some definitions (such as the outdate _POSIX_SOURCE one). _POSIX_SOURCE also had to be conditionally defined in some places, as what it enables or disables during compilation varies across systems. --- common/vncauth.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/vncauth.c b/common/vncauth.c index 82c1b68..0b20f53 100644 --- a/common/vncauth.c +++ b/common/vncauth.c @@ -24,6 +24,7 @@ #ifdef __STRICT_ANSI__ #define _BSD_SOURCE #define _POSIX_SOURCE +#define _XOPEN_SOURCE 600 #endif #ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H #include -- cgit v1.2.1