@@ -32,6 +32,8 @@
#ifndef _ARPA_TFTP_H
#define _ARPA_TFTP_H 1
+#include <features.h>
+
/*
* Trivial File Transfer Protocol (IEN-133)
*/
@@ -55,9 +57,9 @@ struct tftphdr {
unsigned short tu_block; /* block # */
short tu_code; /* error code */
} __attribute__ ((__packed__)) th_u3;
- char tu_data[0]; /* data or error string */
+ char tu_data[0] __decl_is_flex_array; /* data or error string */
} __attribute__ ((__packed__)) th_u2;
- char tu_stuff[0]; /* request packet stuff */
+ char tu_stuff[0] __decl_is_flex_array; /* request packet stuff */
} __attribute__ ((__packed__)) th_u1;
} __attribute__ ((__packed__));
Signed-off-by: Cristian RodrÃguez <cristian@rodriguez.im> --- inet/arpa/tftp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)