diff options
author | Slávek Banko <[email protected]> | 2021-07-04 17:32:14 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-07-04 18:52:47 +0200 |
commit | f7618c625ca2dc84f08eae88d86c5ea4d3fd73c5 (patch) | |
tree | fee3b0bf7f69cea1266648812f67541fc01e7122 | |
parent | b617c1db5d8faba9ae67e94d57be03615a642e5e (diff) | |
download | tellico-f7618c625ca2dc84f08eae88d86c5ea4d3fd73c5.tar.gz tellico-f7618c625ca2dc84f08eae88d86c5ea4d3fd73c5.zip |
Fix FTBFS on non-linux systems.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit dd7b2b8f0ea5482023a338bf9e1233cefa7b3f22)
-rw-r--r-- | src/barcode/barcode_v4l.cpp | 1 | ||||
-rw-r--r-- | src/barcode/barcode_v4l.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/barcode/barcode_v4l.cpp b/src/barcode/barcode_v4l.cpp index ec22aad..4c3aa12 100644 --- a/src/barcode/barcode_v4l.cpp +++ b/src/barcode/barcode_v4l.cpp @@ -24,7 +24,6 @@ //#include <sys/time.h> //#include <sys/mman.h> #include <sys/ioctl.h> -//#include <asm/types.h> /* for videodev2.h */ #include "barcode_v4l.h" #include "../tellico_debug.h" diff --git a/src/barcode/barcode_v4l.h b/src/barcode/barcode_v4l.h index c6f60b2..82dd0b5 100644 --- a/src/barcode/barcode_v4l.h +++ b/src/barcode/barcode_v4l.h @@ -24,7 +24,9 @@ #undef __STRICT_ANSI__ #define FOO__STRICT_ANSI__ #endif -#include <asm/types.h> +#if defined(__linux__) +# include <asm/types.h> +#endif #ifdef FOO__STRICT_ANSI__ #define __STRICT_ANSI__ 1 #undef FOO__STRICT_ANSI__ |