[MPlayer-dev-eng] [PATCH] initial DragonFly BSD support

Pawel Biernacki kaktus at DragonFlyBSD.pl
Mon Aug 30 20:07:47 CEST 2004



On Mon, 30 Aug 2004, Joey Parrish wrote:

> On Mon, Aug 30, 2004 at 12:39:47PM +0200, Diego Biurrun wrote:
>> Pawel Biernacki writes:
>>>
>>> On Sun, 29 Aug 2004, Diego Biurrun wrote:
>>>
>>>> Then why not test for DragonFly in configure and #define __FreeBSD__ in
>>>> config.h if DragonFly is detected?
>>>
>>> Becasue IMO this is not a solution to do
>>> #ifdef _Some_OS_
>>> #define
>>> _Some_Other_OS_Which_We_Already_Have_Because_We_Dont_Want_To_Patch_Out_Src_
>>> #endif
>>>
>>> And #ifdef' don't resolve problem with lrint.
>>
>> Sure, but your patch would shrink to just those few instances where
>> lrint would have to be defined.
>
> An lrint implementation should go into osdep IMHO.
> Also, has anyone tried making some #def BSD for BSD systems in general?
> It seems in many places there is code like:
>
> #if defined(BSD_01) || defined(BSD_02) || ... || defined(BSD_FF)
> ...
> #endif

Ok. I'll prepare patches for lrint, but I still think that redefining 
DragonFly to FreeBSD isn't good idea.




More information about the MPlayer-dev-eng mailing list