0003-Add-_GNU_SOURCE-for-uint-and-M_PI-with-musl-libc.patch 827 B

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