Skip to contentSkip to conversation

adding NO_INET_NTOP and compat/inet_ntop.c for systems without inet_ntop() (old Cygwin).

PATCH New [email protected] 1 participant 1 message Jun 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 adding NO_INET_NTOP and compat/inet_ntop.c for systems without inet_ntop() (old Cygwin).

For systems which lack inet_ntop(), this adds compat/inet_ntop.c, and related build constant, NO_INET_NTOP. Older Cygwin(s) lack inet_ntop().

---

 Makefile           |    3 +
 compat/inet_ntop.c |  200 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 203 insertions(+), 0 deletions(-)
 create mode 100644 compat/inet_ntop.c

7cd8cb466db39e9253d77db1f07f49bce6901731

Makefile +3 -0
index 8ce27a6..fffb4ab 100644
@@ -412,6 +412,9 @@ else
 	ALL_CFLAGS += -Dsockaddr_storage=sockaddr_in6
 endif
 endif
+ifdef NO_INET_NTOP
+	LIB_OBJS += compat/inet_ntop.o
+endif
 
 ifdef NO_ICONV
 	ALL_CFLAGS += -DNO_ICONV
compat/inet_ntop.c new file +200 -0

200 lines not on this page · raw message

Signature · 1 line
1.3.GIT