blob: 5d1664f76b7ae6dd7cf9e717d87341a568d37746 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From ec6000b9f287e62cb0746e26cfa4372c7ea528f4 Mon Sep 17 00:00:00 2001
2From: Andrea Adami <andrea.adami@gmail.com>
3Date: Thu, 19 Apr 2018 23:26:43 +0200
4Subject: [PATCH] sha256.h: avoid inclusion of sys/types.h
5
6Fix
7
8 purgatory/printf.c:2:10: fatal error: limits.h:
9 No such file or directory
10
11Upstream-Status: Inappropriate [klibc specific]
12Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
13
14---
15 util_lib/include/sha256.h | 4 ++++
16 1 file changed, 4 insertions(+)
17
18diff --git a/util_lib/include/sha256.h b/util_lib/include/sha256.h
19index 467fb22..40fd3ed 100644
20--- a/util_lib/include/sha256.h
21+++ b/util_lib/include/sha256.h
22@@ -1,7 +1,11 @@
23 #ifndef SHA256_H
24 #define SHA256_H
25
26+#ifndef __KLIBC__
27 #include <sys/types.h>
28+#else
29+#include <stddef.h>
30+#endif
31 #include <stdint.h>
32
33 typedef struct
34--
352.7.4
36