[vlc-devel] commit: Fix oldhttp build : needs struct stat / S_ISDIR ( Rafaël Carré )

git version control git at videolan.org
Wed Jan 13 01:58:07 CET 2010


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Wed Jan 13 01:45:58 2010 +0100| [1ddc768ca8fe0ddc1e34c6b7ba4baca40c3a3782] | committer: Rafaël Carré 

Fix oldhttp build : needs struct stat / S_ISDIR

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

 modules/control/http/mvar.c |    3 +++
 modules/control/http/util.c |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/control/http/mvar.c b/modules/control/http/mvar.c
index 28862cd..9e0862f 100644
--- a/modules/control/http/mvar.c
+++ b/modules/control/http/mvar.c
@@ -31,6 +31,9 @@
 #include <errno.h>
 #include <ctype.h>
 #include <fcntl.h>
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 
 /* Utility function for scandir */
 static int Filter( const char *foo )
diff --git a/modules/control/http/util.c b/modules/control/http/util.c
index 17e9115..7134321 100644
--- a/modules/control/http/util.c
+++ b/modules/control/http/util.c
@@ -32,6 +32,7 @@
 #include <vlc_strings.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <sys/stat.h>
 
 /****************************************************************************
  * File and directory functions




More information about the vlc-devel mailing list