]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer-dnp3: Fix build for big endian
authorCole Dishington <Cole.Dishington@alliedtelesis.co.nz>
Fri, 31 Mar 2023 00:40:51 +0000 (13:40 +1300)
committerVictor Julien <vjulien@oisf.net>
Mon, 3 Apr 2023 19:19:28 +0000 (21:19 +0200)
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

index 5b395dc9bddfbe5e2583a5cf9130f37d0fe20341..aedef0dcc994c3a318856a8a6d894d1bae4e3a94 100644 (file)
@@ -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.