1From 526510a27ef47a16699dd34a2373ad9b6bb5e8f3 Mon Sep 17 00:00:00 2001
2From: Julien Viard de Galbert <julien@vdg.name>
3Date: Sat, 14 Jan 2017 14:19:47 +0100
4Subject: [PATCH] Add _GNU_SOURCE for uint and M_PI with musl libc
5
6When building with musl libc _GNU_SOURCE need to be defined
7to provide uint type and M_PI macro
8
9Signed-off-by: Julien Viard de Galbert <julien@vdg.name>
10---
11 include/dieharder/libdieharder.h | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/include/dieharder/libdieharder.h b/include/dieharder/libdieharder.h
15index d98b758..c1a5023 100644
16--- a/include/dieharder/libdieharder.h
17+++ b/include/dieharder/libdieharder.h
18@@ -17,6 +17,7 @@
19
20 /* This turns on uint macro in c99 */
21 #define __USE_MISC 1
22+#define _GNU_SOURCE 1
23 #include <stdint.h>
24 #include <sys/types.h>
25 #include <sys/stat.h>
26--
272.1.4
28
29