[vlc-commits] dsm: fix compilation without sys/socket.h

Jean-Baptiste Kempf git at videolan.org
Mon May 16 11:45:42 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 16 11:41:07 2016 +0200| [176e4683e77a209bf8487de763b89e2ee8c0c33b] | committer: Jean-Baptiste Kempf

dsm: fix compilation without sys/socket.h

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

 modules/access/dsm/access.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index df56e5e..d047c36 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -34,13 +34,16 @@
 #include <vlc_access.h>
 #include <vlc_variables.h>
 #include <vlc_keystore.h>
+#include <vlc_network.h>
 
 #include <assert.h>
 #include <string.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+# include <netinet/in.h>
+# include <arpa/inet.h>
+# include <netdb.h>
+#endif
 
 #include <bdsm/bdsm.h>
 #include "../smb_common.h"



More information about the vlc-commits mailing list