Fix definition of ifreq_size macro. Darwin uses the modern variable-size

structure layout.
This commit is contained in:
W. Eric Norum
2002-04-19 16:02:49 +00:00
parent 0cccc1a4ac
commit 1f42e2ab02

View File

@@ -66,6 +66,6 @@ typedef int osiSocklen_t;
#define SD_BOTH 2
#endif
#define ifreq_size(pifreq) (sizeof(pifreq->ifr_name))
#define ifreq_size(pifreq) ((pifreq)->ifr_addr.sa_len + sizeof((pifreq)->ifr_name))
#endif /*osdSockH*/