mosquitto-auth-shadow: Define _GNU_SOURCE before using crypt_r

In glibc crypt_r is available only if _GNU_SOURCE is defined,
so defining it since we're going to compile with glibc
This commit is contained in:
Michael Polyntsov 2023-11-17 16:19:43 +00:00 committed by Vivek Kumar Dutta
parent 01625e3382
commit b96d6a5a1b

View file

@ -11,6 +11,7 @@
* Erik Karlsson - initial implementation * Erik Karlsson - initial implementation
*/ */
#define _GNU_SOURCE
#include <string.h> #include <string.h>
#include <shadow.h> #include <shadow.h>
#include <crypt.h> #include <crypt.h>