Merge branch 'macos10.15-compile-fixes' into 'master'

Compile fixes for macOS 10.15 and later

See merge request sane-project/frontends!8
master
Ralph Little 2023-02-12 02:03:23 +00:00
commit a7fec47bec
1 zmienionych plików z 20 dodań i 19 usunięć

Wyświetl plik

@ -100,7 +100,8 @@ sanei_debug_msg
if (max_level >= level)
{
if ( 1 == isfdtype(fileno(stderr), S_IFSOCK) )
struct stat sb;
if ( 0 == fstat(fileno(stderr), &sb) && S_IFSOCK == (sb.st_mode & S_IFMT) )
{
msg = (char *)malloc (sizeof(char) * (strlen(be) + strlen(fmt) + 4));
if (msg == NULL)