avdevice/oss_audio: Add #if HAVE_UNISTD_H around #include <unistd.h>
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Jul 2014 00:48:51 +0000 (02:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Jul 2014 00:48:51 +0000 (02:48 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/oss_audio.c

index 71bf636..734e565 100644 (file)
@@ -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>