Don't define INVALID_SOCKET if it has been defined already (i.e. by libpcap) (#1021)

Co-authored-by: Thomas Behn <Thomas.Behn@meinberg.de>
This commit is contained in:
Thomas Behn 2021-08-10 14:29:27 +02:00 committed by GitHub
parent 469c6bc2b6
commit a58f042614
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,7 +178,9 @@ using socket_t = SOCKET;
#include <unistd.h>
using socket_t = int;
#ifndef INVALID_SOCKET
#define INVALID_SOCKET (-1)
#endif
#endif //_WIN32
#include <algorithm>