Skip to content

Commit 2abce42

Browse files
cfriedtstephanosio
authored andcommitted
posix: create a typedef for in_addr_t
A recent change made it so that in_addr_t was no longer defined. Define in_addr_t in arpa/inet.h Signed-off-by: Chris Friedt <chrisfriedt@gmail.com>
1 parent d34351d commit 2abce42

File tree

1 file changed

+2
-0
lines changed
  • include/zephyr/posix/arpa

1 file changed

+2
-0
lines changed

‎include/zephyr/posix/arpa/inet.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ static inline int inet_pton(sa_family_t family, const char *src, void *dst)
3232

3333
#endif /* CONFIG_NET_SOCKETS_POSIX_NAMES */
3434

35+
typedef uint32_t in_addr_t;
36+
3537
in_addr_t inet_addr(const char *cp);
3638
char *inet_ntoa(struct in_addr in);
3739

0 commit comments

Comments
 (0)