To include a linux-specific header like linux/types.h, one should test for the presence of linux rather than the absence of BSD.

This commit is contained in:
Ximin Luo
2015-07-30 13:13:37 +02:00
committed by Mr Dave
parent a02eb47860
commit d09bdd19e0

View File

@@ -52,7 +52,7 @@
... the function
*/
#if (!defined(BSD))
#if defined(__linux__)
#include <linux/types.h>
#include <linux/version.h>
@@ -309,7 +309,7 @@ struct pwc_table_init_buffer {
* use interface offer by v4l2.
*/
#if (defined(MOTION_V4L2)) && (!defined(BSD))
#if (defined(MOTION_V4L2)) && defined(__linux__)
#define V4L2_CID_PRIVATE_SAVE_USER (V4L2_CID_PRIVATE_BASE + 0)
#define V4L2_CID_PRIVATE_RESTORE_USER (V4L2_CID_PRIVATE_BASE + 1)