Seems not... I looked.
more testing: if I mute ethernet.h if... dhcp is not double included but then, EthernetClient and Ethernet server is not well included.
To test if something else could cause the trouble, I muted every define macro and rewrite them to ethernet2, and it compile.. :
#define WEBSOCKETS_MAX_DATA_SIZE (1024)
#define WEBSOCKETS_TCP_TIMEOUT (1500)
#define NETWORK_W5500 (4)
#define WEBSOCKETS_NETWORK_TYPE NETWORK_W5500
#include <Ethernet2.h>
//#include <EthernetClient.h>
//#include <EthernetServer.h>
#include <SPI.h>
#define WEBSOCKETS_NETWORK_CLASS EthernetClient
#define WEBSOCKETS_NETWORK_SERVER_CLASS EthernetServer
the original code came fro that git repo on branch ATmega: arduinoWebSockets/tree/ATmega
I wonder what can cause the compiler to not respsct, or dont how to call it, the define macro....