From 5b49ec03b165b8d7c69e196bf1c2780274fbe1ee Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 20 May 2018 15:47:33 +0200 Subject: [PATCH] Fix getrandom call in magic.c _GNU_SOURCE must be defined before any includes to be able to use getrandom Signed-off-by: Fabrice Fontaine [Upstream status: https://github.com/jeroennijhof/pam_tacplus/pull/118] --- libtac/lib/magic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtac/lib/magic.c b/libtac/lib/magic.c index 97aa035..a9cbe86 100644 --- a/libtac/lib/magic.c +++ b/libtac/lib/magic.c @@ -18,6 +18,7 @@ * See `CHANGES' file for revision history. */ +#define _GNU_SOURCE #include #include #include -- 2.14.1