summaryrefslogtreecommitdiff
path: root/src/compositor-rdp.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2013-05-22 18:03:19 +0300
committerKristian Høgsberg <krh@bitplanet.net>2013-06-05 01:16:34 -0400
commitc228e23b055f54d29f2df839cf76a2660917b9f6 (patch)
tree6f810a3fd6061b2dadb8cc654a795530654debf1 /src/compositor-rdp.c
parent5238b683e20e619cca92eea2691ba7ca947ead84 (diff)
configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS
AC_USE_SYSTEM_EXTENSIONS enables _XOPEN_SOURCE, _GNU_SOURCE and similar macros to expose the largest extent of functionality supported by the underlying system. This is required since these macros are often limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually on some systems hide declarations which are not part of the X/Open spec. Since this goes into config.h rather than the command line, ensure all source is consistently including config.h before anything else, including system libraries. This doesn't need to be guarded by a HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org modular transition. Signed-off-by: Daniel Stone <daniel@fooishbar.org> [pq: rebased and converted more files]
Diffstat (limited to 'src/compositor-rdp.c')
-rw-r--r--src/compositor-rdp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index 93c3c161..1a973d2e 100644
--- a/src/compositor-rdp.c
+++ b/src/compositor-rdp.c
@@ -20,9 +20,7 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include <stdlib.h>
#include <string.h>