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/drmtest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/drmtest.c') 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 #endif #include -- cgit v1.2.3