scanimage, jpegtopdf: fixes for FreeBSD header definitions.

release-1.2.x
Ralph Little 2023-01-06 23:36:43 -08:00
rodzic 4033ea23b6
commit 370547fc60
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -201,7 +201,11 @@ static SANE_Int _get_current_time( struct tm *pt, SANE_Byte *sign_c, int *ptz_h,
goto EXIT;
}
/* get time difference ( OHH'mm' ) */
#ifdef __FreeBSD__
tz = -pt->tm_gmtoff;
#else
tz = timezone;
#endif
if ( tz > 0 ) {
*sign_c = '-';
}

Wyświetl plik

@ -40,6 +40,10 @@
#include <unistd.h>
#include <stdarg.h>
#ifdef __FreeBSD__
#include <libgen.h>
#endif
#if defined (__APPLE__) && defined (__MACH__)
#include <libgen.h> // for basename()
#endif