[libdvbpsi-devel] examples/dump_pids.c, check_cc_pid.c: Fix for building on windows.

Jean-Paul Saman git at videolan.org
Wed Apr 16 15:53:34 CEST 2014


libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | 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);



More information about the libdvbpsi-devel mailing list