Commit 874a0ab4 authored by Szymon Janc's avatar Szymon Janc Committed by Fabio Utzig
Browse files

boot_serial: Fix Mynewt tests build



__packed may not be available in all environments. In such
case just fallback to  __attribute__((__packed__)).

Signed-off-by: default avatarSzymon Janc <szymon.janc@codecoup.pl>
parent 16f3de56
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -54,6 +54,10 @@ extern "C" {
#define NMGR_ID_CONS_ECHO_CTRL  1
#define NMGR_ID_RESET           5

#ifndef __packed
#define __packed __attribute__((__packed__))
#endif

struct nmgr_hdr {
    uint8_t  nh_op;             /* NMGR_OP_XXX */
    uint8_t  nh_flags;