[MPlayer-dev-eng] (from mplayer-users) Build errors when compiling on solaris

pl p_l at gmx.fr
Tue Feb 5 18:58:59 CET 2002


Hi,

There's a slight compilation trouble on solaris fixable by including
sys/types.h in libmpdemux/yuv4mpeg_ratio.c (see john doe
<meleth at freebox.com> mails on -users list).

Yet, I think it would be cleanier to add sys/types.h of
libmdemux/stream.h since the off_t type is defined in types.h.

FWIW, it compiles fine here (debian) with or without this patch applied.

Arpi, choose your fix (as you requested no additional #include's in
headers)


Index: libmpdemux/stream.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.h,v
retrieving revision 1.31
diff -u -r1.31 stream.h
--- libmpdemux/stream.h 29 Jan 2002 12:11:52 -0000      1.31
+++ libmpdemux/stream.h 5 Feb 2002 18:02:22 -0000
@@ -2,6 +2,7 @@
 #define __STREAM_H
 
 #include <inttypes.h>
+#include <sys/types.h>
 
 #define STREAM_BUFFER_SIZE 2048

-- 
Best regards,
  pl



More information about the MPlayer-dev-eng mailing list