mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
e5bda9399d
The build fails first of all because it cannot find the function body for __builtin_memset. In glibc 2.26 this is available via inclusion of string.h. Another failure was that UINT64_MAX wasn't available in staging/tools.c, which is fixed again by inclusion of stdint.h. Signed-off-by: aszlig <aszlig@nix.build> Cc: @nckx
25 lines
709 B
Diff
25 lines
709 B
Diff
diff --git a/built_in.h b/built_in.h
|
|
index da04dbd..7acc183 100644
|
|
--- a/built_in.h
|
|
+++ b/built_in.h
|
|
@@ -10,6 +10,7 @@
|
|
#include <endian.h>
|
|
#include <byteswap.h>
|
|
#include <asm/byteorder.h>
|
|
+#include <string.h>
|
|
|
|
typedef uint64_t u64;
|
|
typedef uint32_t u32;
|
|
diff --git a/staging/tools.c b/staging/tools.c
|
|
index 9d2d1be..909b059 100644
|
|
--- a/staging/tools.c
|
|
+++ b/staging/tools.c
|
|
@@ -55,6 +55,7 @@
|
|
////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "mz.h"
|
|
+#include <stdint.h>
|
|
|
|
#define CMP_INT(a, b) ((a) < (b) ? -1 : (a) > (b))
|
|
#define IPV6_MAX_RANGE_LEN strlen("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/128")
|