kFreeBSD: Add stdint.h header file where (u)intXX_t types were used
authorGregor Jasny <gjasny@googlemail.com>
Mon, 18 Jun 2012 20:46:31 +0000 (22:46 +0200)
committerGregor Jasny <gjasny@googlemail.com>
Mon, 18 Jun 2012 20:46:31 +0000 (22:46 +0200)
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
16 files changed:
contrib/freebsd/include/linux/dvb/dmx.h
contrib/freebsd/include/linux/dvb/frontend.h
contrib/freebsd/include/linux/dvb/net.h
contrib/freebsd/include/linux/input.h
contrib/freebsd/include/linux/ivtv.h
contrib/freebsd/include/linux/videodev2.h
contrib/freebsd/patches/dvb-audio-header.diff
contrib/freebsd/patches/dvb-dmx-header.diff
contrib/freebsd/patches/dvb-frontend-header.diff
contrib/freebsd/patches/dvb-net-header.diff
contrib/freebsd/patches/dvb-osd-header.diff
contrib/freebsd/patches/dvb-video-header.diff
contrib/freebsd/patches/dvb-video-timestamp.diff
contrib/freebsd/patches/input-header.diff
contrib/freebsd/patches/ivtv-header.diff
contrib/freebsd/patches/videodev2-header.diff

index 2dc48b0..1c48e6b 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _DVBDMX_H_
 #define _DVBDMX_H_
 
+#include <stdint.h>
 #include <sys/types.h>
 #include <time.h>
 
index 8160fe8..fb1ee31 100644 (file)
@@ -26,6 +26,7 @@
 #ifndef _DVBFRONTEND_H_
 #define _DVBFRONTEND_H_
 
+#include <stdint.h>
 #include <sys/types.h>
 
 typedef enum fe_type {
index 28e1f23..e338de0 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _DVBNET_H_
 #define _DVBNET_H_
 
+#include <stdint.h>
 #include <sys/types.h>
 
 struct dvb_net_if {
index 157568e..c546f6c 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/time.h>
 #include <linux/list.h>
 #else
+#include <stdint.h>
 #include <sys/time.h>
 #include <sys/ioctl.h>
 #include <sys/types.h>
@@ -46,7 +47,7 @@ typedef int8_t __s8;
 #endif
 #endif
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #define __user
 #define        _IOC_READ   IOC_OUT
 #define        _IOC_WRITE  IOC_IN
index 511f69e..c6da75a 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef __LINUX_IVTV_H__
 #define __LINUX_IVTV_H__
 
+#include <stdint.h>
 #include <sys/types.h>
 #include <linux/videodev2.h>
 
index 4ca8a88..ad921e1 100644 (file)
@@ -56,6 +56,7 @@
 #ifndef __LINUX_VIDEODEV2_H
 #define __LINUX_VIDEODEV2_H
 
+#include <stdint.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
index e8fac54..70437a4 100644 (file)
@@ -1,7 +1,5 @@
-Index: freebsd/include/linux/dvb/audio.h
-===================================================================
---- freebsd.orig/include/linux/dvb/audio.h
-+++ freebsd/include/linux/dvb/audio.h
+--- a/include/linux/dvb/audio.h
++++ b/include/linux/dvb/audio.h
 @@ -24,7 +24,7 @@
  #ifndef _DVBAUDIO_H_
  #define _DVBAUDIO_H_
index 8b0af15..6e871da 100644 (file)
@@ -1,8 +1,6 @@
-Index: freebsd/include/linux/dvb/dmx.h
-===================================================================
---- freebsd.orig/include/linux/dvb/dmx.h
-+++ freebsd/include/linux/dvb/dmx.h
-@@ -24,13 +24,8 @@
+--- a/include/linux/dvb/dmx.h
++++ b/include/linux/dvb/dmx.h
+@@ -24,13 +24,9 @@
  #ifndef _DVBDMX_H_
  #define _DVBDMX_H_
  
@@ -10,6 +8,7 @@ Index: freebsd/include/linux/dvb/dmx.h
 -#ifdef __KERNEL__
 -#include <linux/time.h>
 -#else
++#include <stdint.h>
 +#include <sys/types.h>
  #include <time.h>
 -#endif
index 1ade398..8376668 100644 (file)
@@ -1,12 +1,11 @@
-Index: freebsd/include/linux/dvb/frontend.h
-===================================================================
---- freebsd.orig/include/linux/dvb/frontend.h
-+++ freebsd/include/linux/dvb/frontend.h
-@@ -26,7 +26,7 @@
+--- a/include/linux/dvb/frontend.h
++++ b/include/linux/dvb/frontend.h
+@@ -26,7 +26,8 @@
  #ifndef _DVBFRONTEND_H_
  #define _DVBFRONTEND_H_
  
 -#include <linux/types.h>
++#include <stdint.h>
 +#include <sys/types.h>
  
  typedef enum fe_type {
index d0ff332..24838c3 100644 (file)
@@ -1,12 +1,11 @@
-Index: freebsd/include/linux/dvb/net.h
-===================================================================
---- freebsd.orig/include/linux/dvb/net.h
-+++ freebsd/include/linux/dvb/net.h
-@@ -24,7 +24,7 @@
+--- a/include/linux/dvb/net.h
++++ b/include/linux/dvb/net.h
+@@ -24,7 +24,8 @@
  #ifndef _DVBNET_H_
  #define _DVBNET_H_
  
 -#include <linux/types.h>
++#include <stdint.h>
 +#include <sys/types.h>
  
  struct dvb_net_if {
index 2bf6c93..a293874 100644 (file)
@@ -1,7 +1,5 @@
-Index: freebsd/include/linux/dvb/osd.h
-===================================================================
---- freebsd.orig/include/linux/dvb/osd.h
-+++ freebsd/include/linux/dvb/osd.h
+--- a/include/linux/dvb/osd.h
++++ b/include/linux/dvb/osd.h
 @@ -24,7 +24,7 @@
  #ifndef _DVBOSD_H_
  #define _DVBOSD_H_
index 216a6d3..6d7b225 100644 (file)
@@ -1,7 +1,5 @@
-Index: freebsd/include/linux/dvb/video.h
-===================================================================
---- freebsd.orig/include/linux/dvb/video.h
-+++ freebsd/include/linux/dvb/video.h
+--- a/include/linux/dvb/video.h
++++ b/include/linux/dvb/video.h
 @@ -24,13 +24,9 @@
  #ifndef _DVBVIDEO_H_
  #define _DVBVIDEO_H_
index adf8b2d..f73f8ea 100644 (file)
@@ -1,8 +1,6 @@
-Index: freebsd/include/linux/dvb/video.h
-===================================================================
---- freebsd.orig/include/linux/dvb/video.h
-+++ freebsd/include/linux/dvb/video.h
-@@ -133,7 +133,7 @@ struct video_event {
+--- a/include/linux/dvb/video.h
++++ b/include/linux/dvb/video.h
+@@ -133,7 +133,7 @@
  #define VIDEO_EVENT_FRAME_RATE_CHANGED        2
  #define VIDEO_EVENT_DECODER_STOPPED   3
  #define VIDEO_EVENT_VSYNC             4
index 30e3875..dcf10f5 100644 (file)
@@ -1,8 +1,10 @@
-Index: freebsd/include/linux/input.h
-===================================================================
---- freebsd.orig/include/linux/input.h
-+++ freebsd/include/linux/input.h
-@@ -16,8 +16,44 @@
+--- a/include/linux/input.h
++++ b/include/linux/input.h
+@@ -13,11 +13,48 @@
+ #include <linux/time.h>
+ #include <linux/list.h>
+ #else
++#include <stdint.h>
  #include <sys/time.h>
  #include <sys/ioctl.h>
  #include <sys/types.h>
@@ -36,7 +38,7 @@ Index: freebsd/include/linux/input.h
 +#endif
 +#endif
 +
-+#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 +#define __user
 +#define       _IOC_READ   IOC_OUT
 +#define       _IOC_WRITE  IOC_IN
index 4d9b02c..549ce40 100644 (file)
@@ -1,13 +1,12 @@
-Index: freebsd/include/linux/ivtv.h
-===================================================================
---- freebsd.orig/include/linux/ivtv.h
-+++ freebsd/include/linux/ivtv.h
-@@ -21,8 +21,7 @@
+--- a/include/linux/ivtv.h
++++ b/include/linux/ivtv.h
+@@ -21,8 +21,8 @@
  #ifndef __LINUX_IVTV_H__
  #define __LINUX_IVTV_H__
  
 -#include <linux/compiler.h>
 -#include <linux/types.h>
++#include <stdint.h>
 +#include <sys/types.h>
  #include <linux/videodev2.h>
  
index d82d032..8be0e20 100644 (file)
@@ -1,14 +1,13 @@
-Index: freebsd/include/linux/videodev2.h
-===================================================================
---- freebsd.orig/include/linux/videodev2.h
-+++ freebsd/include/linux/videodev2.h
-@@ -56,14 +56,38 @@
+--- a/include/linux/videodev2.h
++++ b/include/linux/videodev2.h
+@@ -56,14 +56,39 @@
  #ifndef __LINUX_VIDEODEV2_H
  #define __LINUX_VIDEODEV2_H
  
 -#ifdef __KERNEL__
 -#include <linux/time.h>     /* need struct timeval */
 -#else
++#include <stdint.h>
  #include <sys/time.h>
 +#include <sys/types.h>
 +#include <sys/ioctl.h>