mirror of
https://github.com/Motion-Project/motion.git
synced 2025-12-23 23:18:21 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user