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/sw_sync.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/sw_sync.c') 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 */ -#ifndef ANDROID -#define _GNU_SOURCE -#else +#ifdef HAVE_LIBGEN_H #include #endif #include -- cgit v1.2.3