]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #2654 About compilation issue on Alpine Linux
authorEric Bollengier <eric@baculasystems.com>
Mon, 7 Feb 2022 16:22:57 +0000 (17:22 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:04 +0000 (09:03 +0100)
bacula/src/lib/bsys.c

index 2fe857f6b2c79d1e04f2e8ec7afca7974944dcf1..1876f4d29722172d2e307713ea9ccc8c7dd6bf50 100644 (file)
@@ -1660,7 +1660,7 @@ int get_group_members(const char *name, alist *users)
 {
    int ret = -1;
    /* Need to create implementation for other OSes */
-#ifdef HAVE_LINUX_OS
+#if defined(HAVE_LINUX_OS) && defined(HAVE_GETPWENT_R)
 #ifndef __ANDROID__
    static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
    struct group grp, *pgrp;