[MPlayer-dev-eng] [PATCH] Windows DLL support for OS X/Intel (cleaned version)

Valtteri Vuorikoski vuori at sci.fi
Wed Jul 26 00:26:09 CEST 2006


This is a somewhat saner version of the previous patch to enable DLL  
support on OS X/Intel. The caveat regarding DYLD_BIND_AT_LAUNCH still  
applies.

A warning is now given if the user attempts to use DLL codecs without  
setting the environment variable. I'll fix the GUI to invoke mplayer  
proper with this variable set soon.

mmap() of anonymous memory has been generalized into two new files,  
osdep/mmap_anon.c and .h. The new function mmap_anon() replaces the  
previous uses of open(/dev/zero)+mmap() in loader/. FILE_dommap() has  
been cleaned somewhat as a result. As far as I can see, semantics for  
existing code are unaffected. FILE_dommap() now honors the flags  
argument. Unfortunately I don't have easy access to suitable test  
machines.

I have left in the change regarding loader_objfix.sh/stubs.s, since I  
think it's a bit silly to have two methods for two platforms to  
achieve the same result. loader_objfix.sh should be removed. stubs.s  
should be renamed to stubs.S and the Makefile changed accordingly for  
maximum canonicality (since stubs.[sS] is now preprocessed, though  
with the current Makefile there's no practical difference).

  -v
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osx-windll.patch
Type: application/octet-stream
Size: 12906 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060726/00aaaa07/attachment.obj>


More information about the MPlayer-dev-eng mailing list