File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ fn test_apple(target: &str) {
177
177
178
178
headers ! { cfg:
179
179
"aio.h" ,
180
+ "arpa/inet.h" ,
180
181
"CommonCrypto/CommonCrypto.h" ,
181
182
"CommonCrypto/CommonRandom.h" ,
182
183
"copyfile.h" ,
@@ -192,6 +193,17 @@ fn test_apple(target: &str) {
192
193
"grp.h" ,
193
194
"iconv.h" ,
194
195
"ifaddrs.h" ,
196
+
197
+ "sys/types.h" ,
198
+ "sys/socket.h" ,
199
+ // "endian.h", NO
200
+ "libkern/OSByteOrder.h" ,
201
+ // "sys/endian.h", NO
202
+ // "socket.h", NO
203
+ "netinet/in.h" ,
204
+ "arpa/inet.h" ,
205
+ // "endian.h", NO
206
+
195
207
"langinfo.h" ,
196
208
"libgen.h" ,
197
209
"libproc.h" ,
Original file line number Diff line number Diff line change @@ -583,6 +583,8 @@ grantpt
583
583
group
584
584
hostent
585
585
hstrerror
586
+ htonl
587
+ htons
586
588
if_indextoname
587
589
if_nametoindex
588
590
in6_addr
@@ -651,6 +653,8 @@ munmap
651
653
nanosleep
652
654
nfds_t
653
655
nlink_t
656
+ ntohl
657
+ ntohs
654
658
off_t
655
659
open
656
660
opendir
Original file line number Diff line number Diff line change @@ -672,6 +672,10 @@ extern "C" {
672
672
) -> :: ssize_t ;
673
673
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_shutdown" ) ]
674
674
pub fn shutdown ( socket : :: c_int , how : :: c_int ) -> :: c_int ;
675
+ pub fn htonl ( hostlong : u32 ) -> u32 ;
676
+ pub fn htons ( hostshort : u16 ) -> u16 ;
677
+ pub fn ntohl ( netlong : u32 ) -> u32 ;
678
+ pub fn ntohs ( netshort : u16 ) -> u16 ;
675
679
676
680
#[ cfg_attr(
677
681
all( target_os = "macos" , target_arch = "x86" ) ,
You can’t perform that action at this time.
0 commit comments