kopia lustrzana https://gitlab.com/sane-project/backends
scanimage, jpegtopdf: fixes for FreeBSD header definitions.
rodzic
4033ea23b6
commit
370547fc60
|
@ -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 = '-';
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue