]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Compilation fix for ancient gcc.
authorVincent Bernat <bernat@luffy.cx>
Thu, 9 Jul 2009 18:10:43 +0000 (20:10 +0200)
committerVincent Bernat <bernat@luffy.cx>
Tue, 29 Sep 2009 14:44:58 +0000 (16:44 +0200)
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

index 0f77d00d5f536cbe20640762c25cf5a1113bd679..d3cc84fe5648c7f2a865f3b9a064290afd66ed3c 100644 (file)
@@ -195,7 +195,7 @@ struct lldpd_port {
 
 struct lldpd_frame {
        int size;
-       unsigned char frame[];
+       unsigned char frame[1];
 };
 
 struct lldpd_hardware;