Addendum to rev. 1.15: use of __extension__ here is supported in GCC 2.8.0 and
above only; since this is the only occurence, fix it locally rather than in <sys/cdefs.h> as to not remove all the functionality on pre-2.8 systems. XXX Shouldn't use zero-length arrays at all.
This commit is contained in:
parent
3743c9e91d
commit
cd577c539a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_arp.h,v 1.15 1999/02/21 17:35:17 kleink Exp $ */
|
||||
/* $NetBSD: if_arp.h,v 1.16 1999/02/23 16:59:38 kleink Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1986, 1993
|
||||
@ -74,7 +74,10 @@ struct arphdr {
|
||||
u_int8_t ar_tpa[]; /* target protocol address */
|
||||
#endif
|
||||
/* LINTED 0 sized arrays are not legal, but we like one here */
|
||||
#if defined(__GNUC__) && (((__GNUC__ == 2) && (__GNUC_MINOR >= 8)) || \
|
||||
(__GNUC__ > 2))
|
||||
__extension__
|
||||
#endif
|
||||
u_int8_t ar_remain[0]; /* minimum size, normally bigger */
|
||||
#define ar_sha(ap) (((ap)->ar_remain)+0)
|
||||
#define ar_spa(ap) (((ap)->ar_remain)+(ap)->ar_hln)
|
||||
|
Loading…
Reference in New Issue
Block a user