From 6234d753a9ba67291d41bd1f537d57032c9813b6 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 30 Oct 2002 20:31:04 +0000 Subject: [PATCH] NetBSD fix by Bernd Ernesti Originally committed as revision 1115 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dsputil.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index f57d4aae36e..4507753a875 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -269,9 +269,10 @@ void ff_mdct_calc(MDCTContext *s, FFTSample *out, const FFTSample *input, FFTSample *tmp); void ff_mdct_end(MDCTContext *s); -#if defined(__FreeBSD__) || (__bsdi__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) /* XXX: add ISOC specific test to avoid specific BSD testing. */ /* better than nothing implementation. */ +/* btw, rintf() is existing on fbsd too -- alex */ static inline long int lrintf(float x) { return (int)(rint(x)); -- 2.39.2