From 00215dd5b78cfe05838b8e39e092480f80ed6deb Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 5 Sep 2017 14:36:05 +0200 Subject: 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 Acked-by: Jani Nikula Acked-by: Arkadiusz Hiler Acked-by: Petri Latvala Acked-by: Daniel Stone Acked-by: Radoslaw Szwichtenberg Signed-off-by: Daniel Vetter --- lib/igt_aux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/igt_aux.c') 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 #endif #include -- cgit v1.2.3