File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ #include <netinet/in.h>
2
+
3
+ static uint32_t my_htonl (uint32_t x ) { return htonl (x ); }
4
+ static uint16_t my_htons (uint16_t x ) { return htons (x ); }
5
+ static uint32_t my_ntohl (uint32_t x ) { return ntohl (x ); }
6
+ static uint32_t my_ntohs (uint16_t x ) { return ntohs (x ); }
7
+
8
+ #undef htonl
9
+ #undef htons
10
+ #undef ntohl
11
+ #undef ntohs
12
+
13
+ uint32_t htonl (uint32_t x ) { return my_htonl (x ); }
14
+ uint32_t htons (uint16_t x ) { return my_htons (x ); }
15
+ uint32_t ntohl (uint32_t x ) { return my_ntohl (x ); }
16
+ uint32_t ntohs (uint16_t x ) { return my_ntohs (x ); }
Original file line number Diff line number Diff line change @@ -176,6 +176,9 @@ library
176
176
temporary
177
177
178
178
if os(haiku)
179
+ c-sources :
180
+ cbits/swap.c
181
+
179
182
extra-libraries :
180
183
network
181
184
You can’t perform that action at this time.
0 commit comments