[libbluray-devel] Include stdio.h if unistd.h is not available for SEEK_* definitions.

Andreas Zelend git at videolan.org
Sat Jan 16 12:02:42 CET 2016


libudfread | branch: master | Andreas Zelend <ace20022 at ymail.com> | Thu Jan 14 15:54:10 2016 +0100| [40f4ad77e9899f5f2bd04eaf6934ad236574ed69] | committer: Petri Hintukainen

Include stdio.h if unistd.h is not available for SEEK_* definitions.

> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=40f4ad77e9899f5f2bd04eaf6934ad236574ed69
---

 src/default_blockinput.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/default_blockinput.c b/src/default_blockinput.c
index 63bebaf..3161d27 100644
--- a/src/default_blockinput.c
+++ b/src/default_blockinput.c
@@ -38,6 +38,9 @@
 
 #ifdef _WIN32
 #include <windows.h>
+#ifndef HAVE_UNISTD_H
+#include <stdio.h>
+#endif
 #include <io.h>
 #endif
 



More information about the libbluray-devel mailing list