If you don't have a sufficiently recent C compiler (C99 maybe?), the
ethercat plugin will not compile because of the unnamed struct.
--- plugins/ethercat/packet-ethercat-datagram.h (revision 24270)
+++ plugins/ethercat/packet-ethercat-datagram.h (working copy)
@@ -32,10 +32,13 @@
{
guint16 adp;
guint16 ado;
- };
+ } adp_ado ;
guint32 addr;
} EcParserAddrUnion;
+#define adp adp_ado.adp
+#define ado adp_ado.ado
+
typedef struct _EcParser
{
guint8 cmd;
--
There's no point in being grown up if you can't be childish sometimes.
-- Dr. Who