diff --git a/dix/colormap.c b/dix/colormap.c index 4276973b6..ec787349f 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -53,6 +53,9 @@ SOFTWARE. #include #include #include + +#include "dix/colormap_priv.h" + #include "misc.h" #include "dix.h" #include "dixstruct.h" diff --git a/dix/colormap_priv.h b/dix/colormap_priv.h new file mode 100644 index 000000000..9f3d211a3 --- /dev/null +++ b/dix/colormap_priv.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: MIT OR X11 + * + * Copyright © 2024 Enrico Weigelt, metux IT consult + */ +#ifndef _XSERVER_DIX_COLORMAP_PRIV_H +#define _XSERVER_DIX_COLORMAP_PRIv_H + +typedef struct _CMEntry *EntryPtr; + +#endif /* _XSERVER_DIX_COLORMAP_PRIV_H */ diff --git a/hw/xfree86/common/xf86cmap.c b/hw/xfree86/common/xf86cmap.c index 152b5821a..bb639c4f8 100644 --- a/hw/xfree86/common/xf86cmap.c +++ b/hw/xfree86/common/xf86cmap.c @@ -40,6 +40,8 @@ #include #include "misc.h" #include + +#include "dix/colormap_priv.h" #include "colormapst.h" #include "scrnintstr.h" diff --git a/include/colormap.h b/include/colormap.h index f3b18a613..dabfbd92c 100644 --- a/include/colormap.h +++ b/include/colormap.h @@ -70,7 +70,6 @@ SOFTWARE. #define BeingCreated 4 typedef CARD32 Pixel; -typedef struct _CMEntry *EntryPtr; /* moved to screenint.h: typedef struct _ColormapRec *ColormapPtr */ typedef struct _colorResource *colorResourcePtr;