PERFORCE change 157799 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Feb 16 08:31:21 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=157799
Change 157799 by hselasky at hselasky_laptop001 on 2009/02/16 16:31:00
Compatibility: Be compatible with Linux Version of
videodev header files.
Affected files ...
.. //depot/projects/usb/src/sys/sys/videodev.h#9 edit
Differences ...
==== //depot/projects/usb/src/sys/sys/videodev.h#9 (text+ko) ====
@@ -44,7 +44,12 @@
#include <sys/stdint.h>
#include <sys/time.h>
-#if !defined(__user)
+#ifndef V4L2_UNION
+/* Default is nameless union */
+#define V4L2_UNION
+#endif
+
+#ifndef __user
#define __user
#endif
@@ -337,7 +342,7 @@
union { /* Frame size */
struct v4l2_frmsize_discrete discrete;
struct v4l2_frmsize_stepwise stepwise;
- } u;
+ } V4L2_UNION;
uint32_t reserved[2]; /* Reserved space for future use */
};
@@ -368,7 +373,7 @@
union { /* Frame interval */
struct v4l2_fract discrete;
struct v4l2_frmival_stepwise stepwise;
- } u;
+ } V4L2_UNION;
uint32_t reserved[2]; /* Reserved space for future use */
};
@@ -694,7 +699,7 @@
int32_t value;
int64_t value64;
void *reserved;
- } u;
+ } V4L2_UNION;
} __packed;
struct v4l2_ext_controls {
@@ -1129,7 +1134,7 @@
struct {
uint32_t data[8];
} raw;
- } u;
+ } V4L2_UNION;
};
#endif
More information about the p4-projects
mailing list