View | Details | Raw Unified | Return to bug 268771
Collapse All | Expand All

(-)b/graphics/sane-backends/files/patch-frontend_jpegtopdf.c (+14 lines)
Added Link Here
1
--- frontend/jpegtopdf.c.orig	2022-01-19 16:38:00 UTC
2
+++ frontend/jpegtopdf.c
3
@@ -201,7 +201,11 @@ static SANE_Int _get_current_time( struct tm *pt, SANE
4
 		goto EXIT;
5
 	}
6
 	/* get time difference ( OHH'mm' ) */
7
+#ifdef __FreeBSD__
8
+	tz = -pt->tm_gmtoff;
9
+#else
10
 	tz = timezone;
11
+#endif
12
 	if ( tz > 0 ) {
13
 		*sign_c = '-';
14
 	}
(-)b/graphics/sane-backends/files/patch-frontend_scanimage.c (+12 lines)
Added Link Here
1
--- frontend/scanimage.c.orig	2022-01-19 16:38:00 UTC
2
+++ frontend/scanimage.c
3
@@ -39,6 +39,9 @@
4
 #include <string.h>
5
 #include <unistd.h>
6
 #include <stdarg.h>
7
+#ifdef __FreeBSD__
8
+#include <libgen.h>
9
+#endif
10
 
11
 #include <sys/types.h>
12
 #include <sys/stat.h>

Return to bug 268771