Use Wifi101 Library together with Ethernet2 library

Hello everyone, i have a feather m0 wifi board and an Ethernet featherWing, i tried to build a simple sketch with

#include <Ethernet2.h>
#include <WiFi101.h>

but i have some error about some conflicting name between those library.

In file included from Arduino\libraries\Ethernet2-master\src/Ethernet2.h:14:0,

                 from \Desktop\sketch_eth\sketch_eth.ino:4:

\Arduino\libraries\Ethernet2-master\src/utility/w5500.h:24:17: error: conflicting declaration 'typedef uint8_t SOCKET'

 typedef uint8_t SOCKET;

                 ^

In file included from \Arduino\libraries\arduino_822283\src/WiFiClient.h:28:0,

                 from \Documents\Arduino\libraries\arduino_822283\src/WiFi101.h:35,

                 from \Desktop\sketch_eth\sketch_eth.ino:1:

\Documents\Arduino\libraries\arduino_822283\src/socket/include/socket.h:542:16: error: 'SOCKET' has a previous declaration as 'typedef sint8 SOCKET'

 typedef sint8  SOCKET;

                ^

exit status 1
Errore durante la compilazione per la scheda Adafruit Feather M0.

how can i work with the libraries together?
Thanks a lot!

how can i work with the libraries together?

Resolve all the conflicts.

The one that you posted says that two libraries are saying that SOCKET is another name for a uint8_t. Only one needs to. So, comment out the line in the other one.

i tried to resolve the conflict but unsuccessful because wifi101 library declare SOCKET as sint8 while ethernet2 declare it as uint8_t. So i don't know how to resolve.
Please help thanks

dj-fiorex:
i tried to resolve the conflict but unsuccessful because wifi101 library declare SOCKET as sint8 while ethernet2 declare it as uint8_t. So i don't know how to resolve.
Please help thanks

sint8 is not a standard type, like int or uint8_t. So, you need to find the typedef statement that makes sint8 a type.

You could rename SOCKET to Eth_SOCKET and WiFi_SOCKET in the two libraries. Then, there would be no conflict (in the names).