From: Vincent Bernat Date: Thu, 9 Jul 2009 18:10:43 +0000 (+0200) Subject: Compilation fix for ancient gcc. X-Git-Tag: 0.5.0~37^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5c7ce8d2c0acbc99b32cb32693dbd7ac4948d5e;p=thirdparty%2Flldpd.git Compilation fix for ancient gcc. gcc 2.96 does not like "char frame[]" declaration and complains with "array size missing in frame'". We circumvent this limitation by using a one byte array instead of an undefined one. --- diff --git a/src/lldpd.h b/src/lldpd.h index 0f77d00d..d3cc84fe 100644 --- a/src/lldpd.h +++ b/src/lldpd.h @@ -195,7 +195,7 @@ struct lldpd_port { struct lldpd_frame { int size; - unsigned char frame[]; + unsigned char frame[1]; }; struct lldpd_hardware;