From b6c5c59bc349036abb3517bb129ced3dce0e1fc5 Mon Sep 17 00:00:00 2001 From: Cole Dishington Date: Fri, 31 Mar 2023 13:40:51 +1300 Subject: [PATCH] app-layer-dnp3: Fix build for big endian Add missing include of util-byte.h for big endian targets that need SCByteSwap(16|32|64) for DNP3_SWAP(16|32|64). --- src/app-layer-dnp3.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app-layer-dnp3.h b/src/app-layer-dnp3.h index 5b395dc9bd..aedef0dcc9 100644 --- a/src/app-layer-dnp3.h +++ b/src/app-layer-dnp3.h @@ -19,6 +19,9 @@ #define __APP_LAYER_DNP3_H__ #include "rust.h" +#if __BYTE_ORDER == __BIG_ENDIAN +#include "util-byte.h" +#endif /** * The maximum size of a DNP3 link PDU.