only include search.h if available (anyway vlc_fixups will define the functions if...
authorRémi Duraffort <ivoire@videolan.org>
Mon, 6 Dec 2010 17:34:33 +0000 (18:34 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 6 Dec 2010 17:36:08 +0000 (18:36 +0100)
modules/services_discovery/udev.c
modules/services_discovery/xcb_apps.c
src/misc/objects.c
src/misc/variables.c

index b7b7c7f..e80c93c 100644 (file)
@@ -29,7 +29,9 @@
 #include <vlc_services_discovery.h>
 #include <vlc_plugin.h>
 #include <vlc_url.h>
-#include <search.h>
+#ifdef HAVE_SEARCH_H
+# include <search.h>
+#endif
 #include <poll.h>
 #include <errno.h>
 
index 88927c3..6660a27 100644 (file)
@@ -32,8 +32,10 @@ typedef xcb_atom_t Atom;
 #include <vlc_dialog.h>
 #include <vlc_charset.h>
 #include <vlc_plugin.h>
+#ifdef HAVE_SEARCH_H
+# include <search.h>
+#endif
 #include <poll.h>
-#include <search.h>
 
 static int  Open (vlc_object_t *);
 static void Close (vlc_object_t *);
index 8c998e4..4622ebf 100644 (file)
 #include "vlc_codec.h"
 
 #include "variables.h"
+
+#ifdef HAVE_SEARCH_H
+# include <search.h>
+#endif
+
 #ifndef WIN32
 # include <unistd.h>
 #else
@@ -61,7 +66,6 @@
 # define close( a )       closesocket (a)
 #endif
 
-#include <search.h>
 #include <limits.h>
 #include <assert.h>
 
index 966fbac..3d3ab40 100644 (file)
 #include <vlc_charset.h>
 #include "variables.h"
 
+#ifdef HAVE_SEARCH_H
+# include <search.h>
+#endif
+
 #include "libvlc.h"
 
-#include <search.h>
 #include <assert.h>
 #include <math.h>
 #include <limits.h>