[vlc-commits] use proper check for the search.h availability

Steve Lhomme git at videolan.org
Thu Apr 12 14:21:19 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr 12 14:15:32 2018 +0200| [3cea7a78999068f71972094e849f95c1591d3e3a] | committer: Steve Lhomme

use proper check for the search.h availability

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3cea7a78999068f71972094e849f95c1591d3e3a
---

 modules/access/dtv/access.c        | 2 ++
 modules/services_discovery/pulse.c | 2 ++
 modules/services_discovery/udev.c  | 2 ++
 modules/video_output/xcb/keysym.c  | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
index a5fc83d872..e748ec6cb1 100644
--- a/modules/access/dtv/access.c
+++ b/modules/access/dtv/access.c
@@ -29,7 +29,9 @@
 #include <vlc_input.h>
 #include <vlc_plugin.h>
 #include <vlc_dialog.h>
+#ifdef HAVE_SEARCH_H
 #include <search.h>
+#endif
 
 #include "dtv/dtv.h"
 
diff --git a/modules/services_discovery/pulse.c b/modules/services_discovery/pulse.c
index 2c0771d200..8797664f2e 100644
--- a/modules/services_discovery/pulse.c
+++ b/modules/services_discovery/pulse.c
@@ -24,7 +24,9 @@
 # include <config.h>
 #endif
 
+#ifdef HAVE_SEARCH_H
 #include <search.h>
+#endif
 #include <assert.h>
 
 #include <vlc_common.h>
diff --git a/modules/services_discovery/udev.c b/modules/services_discovery/udev.c
index 8ac528b89d..ae5c4c85ef 100644
--- a/modules/services_discovery/udev.c
+++ b/modules/services_discovery/udev.c
@@ -25,7 +25,9 @@
 #endif
 
 #include <errno.h>
+#ifdef HAVE_SEARCH_H
 #include <search.h>
+#endif
 #include <poll.h>
 #include <sys/stat.h>
 #include <fcntl.h>
diff --git a/modules/video_output/xcb/keysym.c b/modules/video_output/xcb/keysym.c
index ad4e31c8a7..f131013154 100644
--- a/modules/video_output/xcb/keysym.c
+++ b/modules/video_output/xcb/keysym.c
@@ -25,7 +25,9 @@
 #include <stdlib.h>
 #include <inttypes.h>
 #include <limits.h>
+#ifdef HAVE_SEARCH_H
 #include <search.h>
+#endif
 #include <assert.h>
 
 struct keysym



More information about the vlc-commits mailing list