]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add wrapper for pthread
authorAlan T. DeKok <aland@freeradius.org>
Fri, 17 Nov 2023 00:07:22 +0000 (19:07 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 17 Nov 2023 00:07:22 +0000 (19:07 -0500)
src/modules/rlm_totp/rlm_totp.c

index 6a458cb47a835a0bb7fbd137aefe5a239a319f72..6f6e6fbeb9c83c5d897768d4ff9a1dc7530c3f61 100644 (file)
@@ -243,7 +243,9 @@ static int dedup_cmp(void const *one, void const *two)
 static void dedup_free(void *data)
 {
        totp_dedup_t *dedup = data;
+#ifdef HAVE_PTHREAD_H
        rlm_totp_t *inst = dedup->instance;
+#endif
 
        if (!dedup->unlisted) {
                PTHREAD_MUTEX_LOCK(inst);