buildroot/package/dieharder/0002-Fix-missing-type-intptr_t.patch
Julien Viard de Galbert 1fdfadda63 dieharder: new package
Signed-off-by: Julien Viard de Galbert <julien@vdg.name>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
[Thomas:
 - remove complicated DIEHARDER_POST_PATCH_FIXUP that replaces bogus
   libtool .m4 files: since we are anyway autoreconfiguring the
   package, this is not necessary. And therefore, remove host-libtool
   in the dependencies.
 - use GPL-2.0 instead of GPLv2
 - add entry in DEVELOPERS file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-04-01 19:06:46 +02:00

28 lines
773 B
Diff

From 6f550841943f19612af064b3d3a1db134078e03c Mon Sep 17 00:00:00 2001
From: Julien Viard de Galbert <julien@vdg.name>
Date: Sat, 14 Jan 2017 14:18:10 +0100
Subject: [PATCH] Fix missing type intptr_t
With glibc-2.23 unistd.h need intptr_t when __USE_MISC is defined.
Signed-off-by: Julien Viard de Galbert <julien@vdg.name>
---
include/dieharder/libdieharder.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/dieharder/libdieharder.h b/include/dieharder/libdieharder.h
index 2138ebf..d98b758 100644
--- a/include/dieharder/libdieharder.h
+++ b/include/dieharder/libdieharder.h
@@ -17,6 +17,7 @@
/* This turns on uint macro in c99 */
#define __USE_MISC 1
+#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
--
2.1.4