summaryrefslogtreecommitdiff
path: root/net-misc/zsync/files/zsync-0.6.2-musl-off_t-fix.patch
blob: 277f23b425cc486c9e9f049ae0ca294df4e3b2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/libzsync/sha1.h b/libzsync/sha1.h
index 3946505..8840570 100644
--- a/libzsync/sha1.h
+++ b/libzsync/sha1.h
@@ -11,9 +11,10 @@
 
 #include "config.h"
 
-#ifdef HAVE_INTTYPES_H
+#if defined(HAVE_INTTYPES_H) && defined(__GLIBC__)
 #include <inttypes.h>
 #else
+#include <stdint.h>
 #include <sys/types.h>
 #endif