Example, Ecore: fix compilation on Windows
authorVincent Torri <vincent dot torri at gmail dot com>
Tue, 15 Dec 2015 05:48:36 +0000 (14:48 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 15 Dec 2015 06:05:06 +0000 (15:05 +0900)
commit8f4834e12cad2c06881af11f8f9163cd3e0ab4d4
tree1dd97b821d7cd8966fb159e4b5869e6b09a00de0
parent44cc2b0a7d6ebcfee7d3ded63255294a205c5ca4
Example, Ecore: fix compilation on Windows

Summary:
The socket API is different on Windows and on Linux.

This is the perfect example where we need to abstract the socket API in Eina :
1) to avoid all these includes specific to sockets
2) to avoid on Windows undefined behavior : close(socket); is undefined behavior if socket is indeed a socket

Reviewers: jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D3441
src/examples/ecore/ecore_fd_handler_gnutls_example.c