blob: 777cbcf94f75ff91b283e4e09ee8e2313bbe7bd8 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From 60098810e1c04be677794bff6a3935011af98934 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: 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