Skip to content

Commit

Permalink
qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_AD…
Browse files Browse the repository at this point in the history
…DR_LEN

Solaris has net/if_arp.h and netinet/if_ether.h rather than net/ethernet.h,
but does not define ETHER_ADDR_LEN, instead providing ETHERADDRL.

Signed-off-by: Nick Briggs <nicholas.h.briggs@gmail.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
  • Loading branch information
nbriggs authored and kostyanf14 committed Jan 30, 2024
1 parent 7c44863 commit b3e0f64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qga/commands-posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@
#include <arpa/inet.h>
#include <sys/socket.h>
#include <net/if.h>
#if defined(__NetBSD__) || defined(__OpenBSD__)
#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(CONFIG_SOLARIS)
#include <net/if_arp.h>
#include <netinet/if_ether.h>
#if !defined(ETHER_ADDR_LEN) && defined(ETHERADDRL)
#define ETHER_ADDR_LEN ETHERADDRL
#endif
#else
#include <net/ethernet.h>
#endif
Expand Down

0 comments on commit b3e0f64

Please sign in to comment.