Skip to content

Commit

Permalink
Properly exclude ethernet.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Sep 11, 2023
1 parent 81c9aba commit 055d81f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/net/Socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
#include <netinet/in.h>
#include <netinet/ip.h>
#include <arpa/inet.h>
#if 0
#endif

#if defined(__linux) || defined(__linux__) || defined(__FreeBSD__)
#include <net/ethernet.h>
#endif

#if defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <net/route.h>
#include <netdb.h>
#include <net/if.h>
Expand Down

0 comments on commit 055d81f

Please sign in to comment.