[vlc-devel] commit: Missing #include <errno.h> ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Sep 12 13:28:07 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 12 13:44:31 2009 +0300| [745bd15ffe52fff777d201248b7cbe6b7e92ceca] | committer: Rémi Denis-Courmont
Missing #include <errno.h>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=745bd15ffe52fff777d201248b7cbe6b7e92ceca
---
include/vlc_gcrypt.h | 2 ++
modules/access/rtp/rtp.c | 1 +
modules/access/v4l2.c | 1 +
modules/control/globalhotkeys/xcb.c | 1 +
modules/stream_filter/decomp.c | 1 +
.../video_filter/dynamicoverlay/dynamicoverlay.c | 1 +
src/input/input.c | 1 +
src/misc/block.c | 1 +
src/misc/pthread.c | 1 +
src/misc/threads.c | 1 +
10 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/include/vlc_gcrypt.h b/include/vlc_gcrypt.h
index 4d94344..eec15c2 100644
--- a/include/vlc_gcrypt.h
+++ b/include/vlc_gcrypt.h
@@ -23,6 +23,8 @@
* This file implements gcrypt support functions in vlc
*/
+#include <errno.h>
+
#ifdef LIBVLC_USE_PTHREAD
/**
* If possible, use gcrypt-provided thread implementation. This is so that
diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index 8d58d2e..27b9138 100644
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -26,6 +26,7 @@
#endif
#include <stdarg.h>
#include <assert.h>
+#include <errno.h>
#include <vlc_common.h>
#include <vlc_demux.h>
diff --git a/modules/access/v4l2.c b/modules/access/v4l2.c
index f88d914..01a7a01 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -44,6 +44,7 @@
#include <vlc_input.h>
#include <ctype.h>
+#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
diff --git a/modules/control/globalhotkeys/xcb.c b/modules/control/globalhotkeys/xcb.c
index f19a6d5..3b15998 100644
--- a/modules/control/globalhotkeys/xcb.c
+++ b/modules/control/globalhotkeys/xcb.c
@@ -28,6 +28,7 @@
#include <vlc_interface.h>
#include <vlc_keys.h>
#include <ctype.h>
+#include <errno.h>
#include <xcb/xcb.h>
#include <xcb/xcb_keysyms.h>
diff --git a/modules/stream_filter/decomp.c b/modules/stream_filter/decomp.c
index 5171ea7..b74bd1c 100644
--- a/modules/stream_filter/decomp.c
+++ b/modules/stream_filter/decomp.c
@@ -28,6 +28,7 @@
#include <vlc_network.h>
#include <assert.h>
#include <unistd.h>
+#include <errno.h>
#ifndef _POSIX_SPAWN
# define _POSIX_SPAWN (-1)
#endif
diff --git a/modules/video_filter/dynamicoverlay/dynamicoverlay.c b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
index dca20ce..77d6e05 100644
--- a/modules/video_filter/dynamicoverlay/dynamicoverlay.c
+++ b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
@@ -37,6 +37,7 @@
#include <ctype.h>
#include <fcntl.h>
+#include <errno.h>
#include "dynamicoverlay.h"
diff --git a/src/input/input.c b/src/input/input.c
index 5db01b4..9137191 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -34,6 +34,7 @@
#include <ctype.h>
#include <limits.h>
#include <assert.h>
+#include <errno.h>
#include "input_internal.h"
#include "event.h"
diff --git a/src/misc/block.c b/src/misc/block.c
index 9ffc673..b57e63a 100644
--- a/src/misc/block.c
+++ b/src/misc/block.c
@@ -31,6 +31,7 @@
#include <vlc_common.h>
#include <sys/stat.h>
#include <assert.h>
+#include <errno.h>
#include "vlc_block.h"
/**
diff --git a/src/misc/pthread.c b/src/misc/pthread.c
index d31e388..41c09d8 100644
--- a/src/misc/pthread.c
+++ b/src/misc/pthread.c
@@ -35,6 +35,7 @@
#include <assert.h>
#include <unistd.h> /* fsync() */
#include <signal.h>
+#include <errno.h>
#include <sched.h>
#ifdef __linux__
diff --git a/src/misc/threads.c b/src/misc/threads.c
index 7b68ce7..acc2d4f 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -33,6 +33,7 @@
#include "libvlc.h"
#include <assert.h>
+#include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
More information about the vlc-devel
mailing list