summaryrefslogtreecommitdiff
path: root/lib/sw_sync.c
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 /lib/sw_sync.c
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>
Diffstat (limited to 'lib/sw_sync.c')
-rw-r--r--lib/sw_sync.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sw_sync.c b/lib/sw_sync.c
index 7bd76702c..9b36dd85c 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>