mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-15 03:13:42 +00:00
ipc: fix compile warning on non-Linux platforms (#252)
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
This commit is contained in:
parent
a95b81ba2b
commit
f7ec9a055c
@ -48,16 +48,16 @@ int use_filesystem_sockets(void)
|
||||
static int filesystem_sockets = 0;
|
||||
|
||||
if (need_init) {
|
||||
#if defined(QB_LINUX) || defined(QB_CYGWIN)
|
||||
struct stat buf;
|
||||
|
||||
need_init = 0;
|
||||
#if defined(QB_LINUX) || defined(QB_CYGWIN)
|
||||
if (stat(FORCESOCKETSFILE, &buf) == 0) {
|
||||
filesystem_sockets = 1;
|
||||
}
|
||||
#else
|
||||
filesystem_sockets = 1;
|
||||
#endif
|
||||
need_init = 0;
|
||||
}
|
||||
return filesystem_sockets;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user