[MPlayer-dev-eng] [PATCH] Fix compilation on OpenBSD
Andrew Savchenko
bircoph at gmail.com
Mon Nov 17 21:25:53 CET 2008
Hello,
the following patches fix complation of mplayer svn head on
openbsd-4.2.
1) socklen_t data type is defined in sys/types.h in OpenBSD, thus
compilation fails with the following:
=======
stream/network.h:29: error: conflicting types for `socklen_t'
/usr/include/sys/types.h:161: error: previous declaration of
`socklen_t'
=======
socklen_t.patch fixes this.
2) Include directories reported by pkg-config for theora are not
included in $_inc_extra, thus if theora is not installed in
standard location, compilation fails due to unknown header file
"theora/theora.h". In case on OpenBSD theora's headers are usually
installed in the /usr/local/include.
theora_local.patch is the fix for this.
3) The third problem is the ffmpeg's problem, I will post to
ffmpeg-devel, but I want to put this patch here for convenience
for those, who want to check/use these patches on OpenBSD.
There is no #define INFINITY in OpenBSD, but HUGE_VAL is. So
nellymouserenc.patch fixes this.
--
Best regards,
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: socklen_t.patch
Type: text/x-diff
Size: 406 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081117/2b52d46d/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: theora_local.patch
Type: text/x-diff
Size: 566 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081117/2b52d46d/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nellymoserenc.patch
Type: text/x-diff
Size: 463 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081117/2b52d46d/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081117/2b52d46d/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list