From b5c7ce8d2c0acbc99b32cb32693dbd7ac4948d5e Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 9 Jul 2009 20:10:43 +0200 Subject: [PATCH] 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. --- src/lldpd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5