[libdvbpsi-devel] examples/decode_mpeg.c: build fix for Windows platforms.

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


libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Wed Apr 16 10:09:03 2014 +0200| [e74393dd84832592bbfc11222cec7ef3d230e4b2] | committer: Jean-Paul Saman

examples/decode_mpeg.c: build fix for Windows platforms.

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

 examples/decode_mpeg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/decode_mpeg.c b/examples/decode_mpeg.c
index 9ac7351..3583f61 100644
--- a/examples/decode_mpeg.c
+++ b/examples/decode_mpeg.c
@@ -241,6 +241,7 @@ static void report_UDPPacketTiming( int32_t i_seqno, int32_t bytes )
 #endif
 #endif
 
+#ifdef HAVE_SYS_SOCKET_H
 #ifdef HAVE_GETTIMEOFDAY
 static mtime_t report_PCRPacketTiming( int i_cc, ts_pid_t *ts_pid,
                     mtime_t i_prev_pcr, mtime_t time_prev, int32_t i_bytes )
@@ -294,6 +295,7 @@ static void report_PCRPacketTiming( int i_cc, ts_pid_t *ts_pid,
     printf( "\n" );
 #endif
 }
+#endif
 
 static void message(dvbpsi_t *handle, const dvbpsi_msg_level_t level, const char* msg)
 {



More information about the libdvbpsi-devel mailing list