From 0a0731721fcda6eb2b506417ed214e15c31da694 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 15 May 2024 19:14:46 +0200 Subject: [PATCH] xfree86: common: include math.h unconditionally The header exists on all supported platform, maybe some might still need to define _XOPEN_SOURCE to get pow() defined. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/xfree86/common/xf86cmap.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hw/xfree86/common/xf86cmap.c b/hw/xfree86/common/xf86cmap.c index bb639c4f8..ca547cc33 100644 --- a/hw/xfree86/common/xf86cmap.c +++ b/hw/xfree86/common/xf86cmap.c @@ -29,18 +29,12 @@ #include #endif -#if defined(_XOPEN_SOURCE) || defined(__sun) && defined(__SVR4) #include -#else -#define _XOPEN_SOURCE /* to get prototype for pow on some systems */ -#include -#undef _XOPEN_SOURCE -#endif - #include -#include "misc.h" #include +#include "misc.h" + #include "dix/colormap_priv.h" #include "colormapst.h" #include "scrnintstr.h"