From 1b2d5599a5b165627d479fcd093c53d92e0ea012 Mon Sep 17 00:00:00 2001 From: Bernd Walter Date: Wed, 1 Aug 2007 11:59:09 +0000 Subject: [PATCH] declare struct tftphdr and embedded union as beeing packed, which is required for arm. Tested on: arm, i386, amd64 Approved by: re (rwatson) MFC after: 1 week --- include/arpa/tftp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/arpa/tftp.h b/include/arpa/tftp.h index 84d7dc167c8f..eef9d4dc513f 100644 --- a/include/arpa/tftp.h +++ b/include/arpa/tftp.h @@ -58,9 +58,9 @@ struct tftphdr { unsigned short tu_block; /* block # */ unsigned short tu_code; /* error code */ char tu_stuff[1]; /* request packet stuff */ - } th_u; + } __packed th_u; char th_data[1]; /* data or error string */ -}; +} __packed; #define th_block th_u.tu_block #define th_code th_u.tu_code