Finish fixing the build on FreeBSD
authorRobert Noland <rnoland@2hip.net>
Tue, 24 Nov 2009 15:27:29 +0000 (09:27 -0600)
committerRobert Noland <rnoland@2hip.net>
Tue, 24 Nov 2009 15:27:29 +0000 (09:27 -0600)
include/drm/drm.h
include/drm/drm_mode.h
include/drm/i915_drm.h
include/drm/radeon_drm.h

index be6fe12..9460e2e 100644 (file)
@@ -46,7 +46,11 @@ typedef unsigned int drm_handle_t;
 
 #include <sys/ioccom.h>
 #include <sys/types.h>
+typedef int16_t  __s16;
+typedef uint16_t __u16;
+typedef int32_t  __s32;
 typedef uint32_t __u32;
+typedef int64_t  __s64;
 typedef uint64_t __u64;
 typedef unsigned long drm_handle_t;
 
index 1f90841..852505e 100644 (file)
@@ -27,9 +27,6 @@
 #ifndef _DRM_MODE_H
 #define _DRM_MODE_H
 
-#include <linux/kernel.h>
-#include <linux/types.h>
-
 #define DRM_DISPLAY_INFO_LEN   32
 #define DRM_CONNECTOR_NAME_LEN 32
 #define DRM_DISPLAY_MODE_LEN   32
index 30baa49..25ff7b7 100644 (file)
 #ifndef _I915_DRM_H_
 #define _I915_DRM_H_
 
+#include "drm.h"
+
 /* Please note that modifications to all structs defined here are
  * subject to backwards-compatibility constraints.
  */
-#include <linux/types.h>
-#include "drm.h"
 
 /* Each region is a minimum of 16k, and there are at most 255 of them.
  */
index 0642836..728df60 100644 (file)
@@ -33,7 +33,7 @@
 #ifndef __RADEON_DRM_H__
 #define __RADEON_DRM_H__
 
-#include <linux/types.h>
+#include "drm.h"
 
 /* WARNING: If you change any of these defines, make sure to change the
  * defines in the X server file (radeon_sarea.h)