diff --git a/graphics/sane-backends/files/patch-frontend_jpegtopdf.c b/graphics/sane-backends/files/patch-frontend_jpegtopdf.c new file mode 100644 index 000000000000..f6e4be53ca79 --- /dev/null +++ b/graphics/sane-backends/files/patch-frontend_jpegtopdf.c @@ -0,0 +1,14 @@ +--- frontend/jpegtopdf.c.orig 2022-01-19 16:38:00 UTC ++++ frontend/jpegtopdf.c +@@ -201,7 +201,11 @@ static SANE_Int _get_current_time( struct tm *pt, SANE + goto EXIT; + } + /* get time difference ( OHH'mm' ) */ ++#ifdef __FreeBSD__ ++ tz = -pt->tm_gmtoff; ++#else + tz = timezone; ++#endif + if ( tz > 0 ) { + *sign_c = '-'; + } diff --git a/graphics/sane-backends/files/patch-frontend_scanimage.c b/graphics/sane-backends/files/patch-frontend_scanimage.c new file mode 100644 index 000000000000..cd7a92a0be01 --- /dev/null +++ b/graphics/sane-backends/files/patch-frontend_scanimage.c @@ -0,0 +1,12 @@ +--- frontend/scanimage.c.orig 2022-01-19 16:38:00 UTC ++++ frontend/scanimage.c +@@ -39,6 +39,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + + #include + #include