[vlc-commits] vlc_networh.h: close() needs <unistd.h>

Rémi Denis-Courmont git at videolan.org
Thu Nov 24 18:36:59 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Nov 24 19:36:13 2011 +0200| [b278bb8521bac23564b2a662ba5da42c192806be] | committer: Rémi Denis-Courmont

vlc_networh.h: close() needs <unistd.h>

Reported-by: Myung-Hun KO <komh78 at gmail.com>

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

 include/vlc_network.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/vlc_network.h b/include/vlc_network.h
index 64fbf89..2e20ac6 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -64,6 +64,8 @@ struct msghdr
 #       define IPV6_V6ONLY 27
 #   endif
 #else
+#   include <sys/types.h>
+#   include <unistd.h>
 #   include <sys/socket.h>
 #   include <netinet/in.h>
 #   include <netdb.h>



More information about the vlc-commits mailing list