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