examples/dump_pids.c, check_cc_pid.c: Fix for building on windows.

[email protected] (Jean-Paul Saman) Wed, 16 Apr 2014 15:53:34 +0200 (CEST)
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <[email protected]>
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | Fri Apr 11 18:22:58 2014 +0200| [ed7859d03941bd43de75a1546b95d49edb6d94da] | committer: Jean-Paul Saman

examples/dump_pids.c, check_cc_pid.c: Fix for building on windows.

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=ed7859d03941bd43de75a1546b95d49edb6d94da
---

 examples/check_cc_pid.c |    4 ++++
 examples/dump_pids.c    |    4 ++++
 2 files changed, 8 insertions(+)

diff --git a/examples/check_cc_pid.c b/examples/check_cc_pid.c
index 26c5212..e813a32 100644
--- a/examples/check_cc_pid.c
+++ b/examples/check_cc_pid.c
@@ -16,6 +16,10 @@
 
 #include <assert.h>
 
+#ifdef WIN32
+#   define O_NONBLOCK (0) /* O_NONBLOCK does not exist for Windows */
+#endif
+
 static inline uint32_t ts_getcc(uint8_t *packet)
 {
     return (packet[3] & 0x0f);
diff --git a/examples/dump_pids.c b/examples/dump_pids.c
index 58a4768..27252ee 100644
--- a/examples/dump_pids.c
+++ b/examples/dump_pids.c
@@ -16,6 +16,10 @@
 
 #include <assert.h>
 
+#ifdef WIN32
+#   define O_NONBLOCK (0) /* O_NONBLOCK does not exist for Windows */
+#endif
+
 static inline uint32_t ts_getcc(uint8_t *packet)
 {
     return (packet[3] & 0x0f);

_______________________________________________
libdvbpsi-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvbpsi-devel