diff --git a/src/lib/utils/log.cpp b/src/lib/utils/log.cpp
index 0829f210..2190c1b6 100644
--- a/src/lib/utils/log.cpp
+++ b/src/lib/utils/log.cpp
@@ -16,6 +16,8 @@
* along with this program. If not, see .
*/
+#define _GNU_SOURCE
+
#include "lib/utils/log.h"
#include
#include