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

Sascha Sommer saschasommer at freenet.de
Mon Sep 20 23:32:03 CEST 2004


> Ok, is this patch is good enough to be commited?

What happend to this patch? I did not follow the thread. In case there was no
answer to this mail see below

> Index: configure
> ===================================================================
> RCS file: /cvsroot/mplayer/main/configure,v
> retrieving revision 1.909
> diff -u -r1.909 configure
> --- configure   27 Aug 2004 20:43:04 -0000  1.909
> +++ configure   31 Aug 2004 17:06:18 -0000
> @@ -6952,6 +6952,11 @@
>   #define X11_FULLSCREEN 1
>   #endif
>
> +/* This is current workaround for DragonFly BSD and GCC 3.4.1 */
> +#if defined(__DragonFly__) && !defined(__FreeBSD__)
> +#define (__FreeBSD__)
> +#endif
> +
>   #endif /* MPLAYER_CONFIG_H */
>   EOF
>

Ok this is really ugly, but as long as there is no __BSD__ or so for common 
stuff it is probably enough for now.

> Index: osdep/Makefile
> ===================================================================
> RCS file: /cvsroot/mplayer/main/osdep/Makefile,v
> retrieving revision 1.16
> diff -u -r1.16 Makefile
> --- osdep/Makefile  27 Jun 2004 17:54:31 -0000  1.16
> +++ osdep/Makefile  31 Aug 2004 17:06:18 -0000
> @@ -27,6 +27,15 @@
>   endif
>   SRCS += $(timer)
>   SRCS += $(getch)
> +ifeq ($(TARGET_OS),FreeBSD)
> +SRCS += lrintf.c
> +endif
> +ifeq ($(TARGET_OS),NetBSD)
> +SRCS += lrintf.c
> +endif
> +ifeq ($(TARGET_OS),OpenBSD)
> +SRCS += lrintf.c
> +endif
>
>   OBJS=$(SRCS:.c=.o)
>
> --- /dev/null   2004-08-31 20:19:47.000000000 +0200
> +++ osdep/lrintf.c      2004-08-31 21:01:39.000000000 +0200
> @@ -0,0 +1,7 @@
> +#include "../config.h"
> +
> +#ifndef lrint
> +#include <math.h>
> +#define        lrintf(x) rintf(x)
> +#endif
> +
>

Where exactly is lrintf undefined for you?
I see it used in af_format, that defines it itself if not present,
libavcodec and vf_qp, both should use the emulation code in ffmpeg's dsputil.h 
and libfaad2 that somehow seems to define it, too.

Sascha
 




More information about the MPlayer-dev-eng mailing list