[MPlayer-dev-eng] [PATCH] Win32 loader for OS/2

Diego Biurrun diego at biurrun.de
Mon Mar 3 10:45:20 CET 2008


On Sat, Mar 01, 2008 at 11:30:31PM +0900, KO Myung-Hun wrote:
>
> Diego Biurrun wrote:
>> On Fri, Feb 29, 2008 at 11:59:12AM +0900, KO Myung-Hun wrote:
>>   
>>> These patches enable Win32 loader support for OS/2
>>
>> These patches are actually a single patch although they would better be
>> several small patches.
>
> Ok. I've splitted those into 2 parts as suggestion of Michael.
>
>>> --- loader/ext.c    (revision 26108)
>>> +++ loader/ext.c    (working copy)
>>> @@ -18,13 +18,18 @@
>>>  #include <malloc.h>
>>>  #endif
>>>  #include <unistd.h>
>>> +#ifdef HAVE_SYS_MMAN_H
>>>  #include <sys/mman.h>
>>> +#endif
>>>  #include <errno.h>
>>>  #include <fcntl.h>
>>>  #include <string.h>
>>>  #include <stdarg.h>
>>>  #include <ctype.h>
>>>  +#ifndef HAVE_SYS_MMAN_H
>>> +#include "osdep/mmap.h"
>>> +#endif
>>>  #include "osdep/mmap_anon.h"
>>>  #include "wine/windef.h"
>>>  #include "wine/winbase.h"
>>> --- loader/win32.c  (revision 26108)
>>> +++ loader/win32.c  (working copy)
>>> @@ -68,7 +68,11 @@
>>>  #include <kstat.h>
>>>  #endif
>>>  +#ifdef HAVE_SYS_MMAN_H
>>>  #include <sys/mman.h>
>>> +#else
>>> +#include "osdep/mmap.h"
>>> +#endif
>>>  #include "osdep/mmap_anon.h"
>>>     
>>
>> You are inconsistent between those two files, use the #else construct
>> everywhere.
>
> I did it to distinguish <> style header and "" style header, but Ok. It is 
> in mmap.diff

This part applied.

>>> --- loader/Makefile (revision 26108)
>>> +++ loader/Makefile (working copy)
>>> @@ -35,6 +35,11 @@
>>>  +ifeq ($(TARGET_OS),OS/2)
>>> +wrapper.o : wrapper.S
>>> +   $(CC) -Zomf -c -o $@ $^
>>> +endif
>>
>> What's the problem here?
>
> Default output of gcc on OS/2 is a.out format. But overall format of 
> MPlayer OS/2 port require OMF format. So without that, librarian cannot 
> recognize it.

I don't understand, -Zomf is added unconditionally to CFLAGS on OS/2.
So why are you leaving out CFLAGS here?

Diego



More information about the MPlayer-dev-eng mailing list