diff options
Diffstat (limited to 'hw/xfree86/os-support/drm')
-rw-r--r-- | hw/xfree86/os-support/drm/xf86drm.c | 8 | ||||
-rw-r--r-- | hw/xfree86/os-support/drm/xf86drmHash.c | 1 | ||||
-rw-r--r-- | hw/xfree86/os-support/drm/xf86drmRandom.c | 1 | ||||
-rw-r--r-- | hw/xfree86/os-support/drm/xf86drmSL.c | 1 |
4 files changed, 4 insertions, 7 deletions
diff --git a/hw/xfree86/os-support/drm/xf86drm.c b/hw/xfree86/os-support/drm/xf86drm.c index 2b0b1b9cc..e79794b3f 100644 --- a/hw/xfree86/os-support/drm/xf86drm.c +++ b/hw/xfree86/os-support/drm/xf86drm.c @@ -62,8 +62,6 @@ # ifdef DRM_USE_MALLOC # define _DRM_MALLOC malloc # define _DRM_FREE free -extern int xf86InstallSIGIOHandler(int fd, void (*f)(int, void *), void *); -extern int xf86RemoveSIGIOHandler(int fd); # else # include <X11/Xlibint.h> # define _DRM_MALLOC Xmalloc @@ -106,10 +104,6 @@ extern unsigned long _bus_base(void); #define DRM_MAX_MINOR 16 #endif -#ifdef __linux__ -#include <sys/sysmacros.h> /* for makedev() */ -#endif - #ifndef makedev /* This definition needs to be changed on some systems if dev_t is a structure. @@ -2268,7 +2262,7 @@ int drmCommandWriteRead(int fd, unsigned long drmCommandIndex, return 0; } -#if defined(XFree86Server) || defined(DRM_USE_MALLOC) +#if defined(XFree86Server) static void drmSIGIOHandler(int interrupt, void *closure) { unsigned long key; diff --git a/hw/xfree86/os-support/drm/xf86drmHash.c b/hw/xfree86/os-support/drm/xf86drmHash.c index 1f1a05b3a..368dfe214 100644 --- a/hw/xfree86/os-support/drm/xf86drmHash.c +++ b/hw/xfree86/os-support/drm/xf86drmHash.c @@ -76,6 +76,7 @@ # include <stdio.h> # include <stdlib.h> #else +# include "drm.h" # include "xf86drm.h" # ifdef XFree86LOADER # include "xf86.h" diff --git a/hw/xfree86/os-support/drm/xf86drmRandom.c b/hw/xfree86/os-support/drm/xf86drmRandom.c index 9e1e9ee2c..8db57a506 100644 --- a/hw/xfree86/os-support/drm/xf86drmRandom.c +++ b/hw/xfree86/os-support/drm/xf86drmRandom.c @@ -79,6 +79,7 @@ # include <stdio.h> # include <stdlib.h> #else +# include "drm.h" # include "xf86drm.h" # ifdef XFree86LOADER # include "xf86.h" diff --git a/hw/xfree86/os-support/drm/xf86drmSL.c b/hw/xfree86/os-support/drm/xf86drmSL.c index dd634c30f..41e36a735 100644 --- a/hw/xfree86/os-support/drm/xf86drmSL.c +++ b/hw/xfree86/os-support/drm/xf86drmSL.c @@ -47,6 +47,7 @@ # include <stdlib.h> # include <sys/time.h> #else +# include "drm.h" # include "xf86drm.h" # ifdef XFree86LOADER # include "xf86.h" |