examples: ecore: bring back inet.h include for inet_pton()
authorStefan Schmidt <s.schmidt@samsung.com>
Mon, 4 Feb 2019 12:10:40 +0000 (13:10 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 6 Feb 2019 22:20:24 +0000 (07:20 +0900)
In commit f7c560c311d0ba0da94346e17c8b20f40a0ed152 this include has been
removed while we still need it for inet_pton() as the compliler warns us
about.

Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Differential Revision: https://phab.enlightenment.org/D7873

src/examples/ecore/ecore_fd_handler_gnutls_example.c

index fcd758e..30fd6bc 100644 (file)
@@ -15,6 +15,9 @@
 #ifdef HAVE_SYS_SOCKET_H
 # include <sys/socket.h>
 #endif
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
 #include <errno.h>
 #include <unistd.h>
 #include <gnutls/gnutls.h>