aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-02-01 13:54:35 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-02-01 13:54:39 -0500
commite4144504048ff2c9a3c1787b82c73a54e8d209a7 (patch)
tree8568fd0cf1131208ac5c01e5292462272e9a6ffc
parentreplace hton and ntoh family functions with ones defined in eina (diff)
downloadefl-e4144504048ff2c9a3c1787b82c73a54e8d209a7.tar.gz
examples: Example still use IPPROTO_CTP from in.h
../src/examples/ecore/ecore_fd_handler_gnutls_example.c: In function ‘tcp_connect’: ../src/examples/ecore/ecore_fd_handler_gnutls_example.c:93:23: error: storage size of ‘sa’ isn’t known struct sockaddr_in sa; ^~ ../src/examples/ecore/ecore_fd_handler_gnutls_example.c:101:19: error: ‘IPPROTO_TCP’ undeclared (first use in this function) setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(int)); ^~~~~~~~~~~ ../src/examples/ecore/ecore_fd_handler_gnutls_example.c:101:19: note: each undeclared identifier is reported only once for each function it appears in ../src/examples/ecore/ecore_fd_handler_gnutls_example.c:106:4: warning: implicit declaration of function ‘inet_pton’; did you mean ‘eina_htonl’? [-Wimplicit-function-declaration] inet_pton(AF_INET, SERVER, &sa.sin_addr); ^~~~~~~~~ eina_htonl ../src/examples/ecore/ecore_fd_handler_gnutls_example.c:93:23: warning: unused variable ‘sa’ [-Wunused-variable] struct sockaddr_in sa; ^~ Reviewers: vtorri, raster, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7867
-rw-r--r--src/examples/ecore/ecore_fd_handler_gnutls_example.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/examples/ecore/ecore_fd_handler_gnutls_example.c b/src/examples/ecore/ecore_fd_handler_gnutls_example.c
index 6547809556..fcd758ea36 100644
--- a/src/examples/ecore/ecore_fd_handler_gnutls_example.c
+++ b/src/examples/ecore/ecore_fd_handler_gnutls_example.c
@@ -9,6 +9,9 @@
#ifdef HAVE_NETINET_TCP_H
# include <netinet/tcp.h>
#endif
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif