From 2e9153cdb9f3f227a3fa1307101f0039e61a137f Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Mon, 18 Jan 2016 14:38:42 +0100 Subject: [PATCH] Fix inet_addr and inet_ntoa not being part of _SORTIX_SOURCE. --- libc/include/arpa/inet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/include/arpa/inet.h b/libc/include/arpa/inet.h index 11fbbede..ca53df1e 100644 --- a/libc/include/arpa/inet.h +++ b/libc/include/arpa/inet.h @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2013, 2014. + Copyright(C) Jonas 'Sortie' Termansen 2013, 2014, 2016. This file is part of the Sortix C Library. @@ -34,7 +34,7 @@ extern "C" { #endif /* Functions from POSIX that is considered obsolete due to bad design. */ -#if __USE_POSIX +#if __USE_SORTIX || __USE_POSIX in_addr_t inet_addr(const char*); char* inet_ntoa(struct in_addr); #endif