From 0c602478a9c240e5390e9faa3a571da01e8c70c8 Mon Sep 17 00:00:00 2001 From: Jason Edson Date: Fri, 10 May 2019 15:53:06 -0700 Subject: [PATCH] libc: netinet: define typedef in_addr_t Fixes a build error with crosshatch In file included from hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/src/IPACM_Main.cpp:63: In file included from hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/inc/IPACM_Neighbor.h:49: In file included from hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/inc/IPACM_Iface.h:50: In file included from hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/inc/IPACM_Xml.h:48: out/soong/.intermediates/bionic/libc/libc.llndk/android_vendor.30_arm64_armv8-2a_kryo385_shared/gen/include/arpa/inet.h:46:1: error: unknown type name 'in_addr_t'; did you mean 'i n_addr'? in_addr_t inet_network(const char* __s) __INTRODUCED_IN(21); Change-Id: I3ac0ff448bbf0e9b3b5cfbaac4a86e384a3520c5 Signed-off-by: Jason Edson --- libc/include/netinet/in.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/include/netinet/in.h b/libc/include/netinet/in.h index 46e3543051..7e319e0c18 100644 --- a/libc/include/netinet/in.h +++ b/libc/include/netinet/in.h @@ -54,6 +54,8 @@ __BEGIN_DECLS typedef uint16_t in_port_t; +typedef uint32_t in_addr_t; + int bindresvport(int __fd, struct sockaddr_in* __sin); #if __ANDROID_API__ >= 24