]> 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>
Mon, 7 Feb 2022 16:22:57 +0000 (17:22 +0100)
bacula/src/lib/bsys.c

index 95b42d44ced0a737325f6bbc0c5da699d2dd0e86..0059ac09276bc07afc9bcbce58a690ff7e1a45f5 100644 (file)
@@ -1588,7 +1588,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;