aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-isns/musl-fixes.patch
blob: 1cd5d13f267e96db911ce1c7d116638ac62554b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/include/libisns/util.h
+++ b/include/libisns/util.h
@@ -100,7 +100,7 @@
  * There's no htonll yet
  */
 #ifndef htonll
-# ifdef __GLIBC__
+# ifdef __linux__
 #  include <endian.h>
 #  include <byteswap.h>
 #  if __BYTE_ORDER == __BIG_ENDIAN
--- a/include/libisns/isns.h
+++ b/include/libisns/isns.h
@@ -13,6 +13,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <stdio.h>
+#include <time.h>

 #include <libisns/isns-proto.h>
 #include <libisns/types.h>