File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ fn test_apple(target: &str) {
177177
178178 headers ! { cfg:
179179 "aio.h" ,
180+ "arpa/inet.h" ,
180181 "CommonCrypto/CommonCrypto.h" ,
181182 "CommonCrypto/CommonRandom.h" ,
182183 "copyfile.h" ,
@@ -192,6 +193,14 @@ fn test_apple(target: &str) {
192193 "grp.h" ,
193194 "iconv.h" ,
194195 "ifaddrs.h" ,
196+
197+ "stdio.h" ,
198+ "unistd.h" ,
199+ "sys/socket.h" ,
200+ "netinet/tcp.h" ,
201+ "netinet/in.h" ,
202+ "arpa/inet.h" ,
203+
195204 "langinfo.h" ,
196205 "libgen.h" ,
197206 "libproc.h" ,
Original file line number Diff line number Diff line change @@ -583,6 +583,8 @@ grantpt
583583group
584584hostent
585585hstrerror
586+ htonl
587+ htons
586588if_indextoname
587589if_nametoindex
588590in6_addr
@@ -651,6 +653,8 @@ munmap
651653nanosleep
652654nfds_t
653655nlink_t
656+ ntohl
657+ ntohs
654658off_t
655659open
656660opendir
Original file line number Diff line number Diff line change @@ -672,6 +672,10 @@ extern "C" {
672672 ) -> :: ssize_t ;
673673 #[ cfg_attr( target_os = "espidf" , link_name = "lwip_shutdown" ) ]
674674 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 ;
675679
676680 #[ cfg_attr(
677681 all( target_os = "macos" , target_arch = "x86" ) ,
You can’t perform that action at this time.
0 commit comments