summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-09-05 14:36:05 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-09-08 17:03:42 +0200
commit00215dd5b78cfe05838b8e39e092480f80ed6deb (patch)
tree50c368f9611e8737588415fec18897cf6ab27b31
parentb36f978b243b21166a58929ff4c3c66bba7ed8dd (diff)
build: use HAVE_LIBGEN_H consistently
Also, we are _GNU_SOURCE, so simplify the conditions accordingly. The next patch will remove _GNU_SOURCE everywhere else. Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com> Acked-by: Daniel Stone <daniels@collabora.com> Acked-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--lib/drmtest.c4
-rw-r--r--lib/igt_aux.c4
-rw-r--r--lib/igt_core.c4
-rw-r--r--lib/ioctl_wrappers.c4
-rw-r--r--lib/sw_sync.c4
5 files changed, 5 insertions, 15 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 158af682..8a07152c 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -26,9 +26,7 @@
*
*/
-#ifndef ANDROID
-#define _GNU_SOURCE
-#else
+#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif
#include <stdio.h>
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index ba6d6695..eb1f90f9 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -26,9 +26,7 @@
*
*/
-#ifndef ANDROID
-#define _GNU_SOURCE
-#else
+#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif
#include <stdio.h>
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 7e5aa342..ff6d19fc 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -26,9 +26,7 @@
*
*/
-#ifndef ANDROID
-#define _GNU_SOURCE
-#else
+#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif
#include <stdio.h>
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index d91f29c8..42b5ec4e 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -26,9 +26,7 @@
*
*/
-#ifndef ANDROID
-#define _GNU_SOURCE
-#else
+#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif
#include <stdio.h>
diff --git a/lib/sw_sync.c b/lib/sw_sync.c
index 7bd76702..9b36dd85 100644
--- a/lib/sw_sync.c
+++ b/lib/sw_sync.c
@@ -24,9 +24,7 @@
* Robert Foss <robert.foss@collabora.com>
*/
-#ifndef ANDROID
-#define _GNU_SOURCE
-#else
+#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif
#include <fcntl.h>