use AC_USE_SYSTEM_EXTENSIONS instead of hard coding _GNU_SOURCE

Instead of just enabling linux specific libc extension, do it
generically on all platforms.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-04-14 11:14:35 +02:00
parent 9d1598b98c
commit 9cb6418547
3 changed files with 1 additions and 8 deletions

View File

@@ -34,6 +34,7 @@ AM_INIT_AUTOMAKE([foreign dist-xz])
AM_MAINTAINER_MODE
AC_CONFIG_HEADERS([config.h])
AC_SYS_LARGEFILE
AC_USE_SYSTEM_EXTENSIONS
# Require xorg-macros: XORG_DEFAULT_OPTIONS
m4_ifndef([XORG_MACROS_VERSION],

View File

@@ -32,10 +32,6 @@
#include "config.h"
#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <unistd.h>
#include <string.h>
#include <stdio.h>

View File

@@ -24,10 +24,6 @@
#include <config.h>
#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#ifdef XF86DRM_MODE