Improve portability on NetBSD
This commit is contained in:
parent
92da2df9d9
commit
8fd07073f8
|
@ -20,6 +20,7 @@
|
|||
#include <sys/stat.h>
|
||||
#ifdef __NetBSD__
|
||||
# include <sys/videoio.h>
|
||||
# include <paths.h>
|
||||
#else
|
||||
# include <linux/videodev2.h>
|
||||
#endif
|
||||
|
@ -134,7 +135,11 @@ struct _Camera
|
|||
|
||||
|
||||
/* constants */
|
||||
#define VIDEO_DEVICE "/dev/video0"
|
||||
#ifdef _PATH_VIDEO0
|
||||
# define VIDEO_DEVICE _PATH_VIDEO0
|
||||
#else
|
||||
# define VIDEO_DEVICE "/dev/video0"
|
||||
#endif
|
||||
|
||||
typedef enum _CameraToolbar
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user