aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-08 02:48:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-08 02:48:51 +0200
commit0dbcecc8dc6b7733451b23627e6192fe8d2038aa (patch)
tree93103089a9c459c0d7e57a1df65ea58d22c9300e
parent8e6a66b6625cb2990f42661215587a1b5b15eec9 (diff)
downloadffmpeg-0dbcecc8dc6b7733451b23627e6192fe8d2038aa.tar.gz
avdevice/oss_audio: Add #if HAVE_UNISTD_H around #include <unistd.h>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavdevice/oss_audio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c
index 71bf63689a..734e565cc7 100644
--- a/libavdevice/oss_audio.c
+++ b/libavdevice/oss_audio.c
@@ -30,7 +30,9 @@
#else
#include <sys/soundcard.h>
#endif
+#if HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <fcntl.h>
#include <sys/ioctl.h>