diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-08-24 18:45:55 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-08-24 18:45:55 +0200 |
commit | a77bc1fcbdf83cfdac9570c0a0ac886b5534c90f (patch) | |
tree | d839746371ecb8ed64ac81d2e37c11fcd25a00ac /sanei/sanei_init_debug.c | |
parent | 787fb1d54ec9ee5fb941ae897fb201feb9cb2fd1 (diff) | |
parent | 2b3e02411ecc09e7d41741b5587655c9b2f955b7 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'sanei/sanei_init_debug.c')
-rw-r--r-- | sanei/sanei_init_debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sanei/sanei_init_debug.c b/sanei/sanei_init_debug.c index 3cde74e..d5d64f2 100644 --- a/sanei/sanei_init_debug.c +++ b/sanei/sanei_init_debug.c @@ -118,7 +118,7 @@ is_socket (int fd) #if defined(S_ISSOCK) return S_ISSOCK(sbuf.st_mode); -#elif defined (S_IFMT) && defined(S_IFMT) +#elif defined (S_IFMT) && defined(S_IFSOCK) return (sbuf.st_mode & S_IFMT) == S_IFSOCK; #else return 0; @@ -133,6 +133,7 @@ sanei_debug_msg if (max_level >= level) { +#if defined(LOG_DEBUG) if (is_socket(fileno(stderr))) { msg = (char *)malloc (sizeof(char) * (strlen(be) + strlen(fmt) + 4)); @@ -149,6 +150,7 @@ sanei_debug_msg } } else +#endif { struct timeval tv; struct tm *t; |