From 791271866423ed36f587e4268f327cca73cafc16 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 2 Jul 2018 15:32:00 -0700 Subject: [PATCH] discoverInterfaces() compat RTEMS --- src/utils/inetAddressUtil.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/inetAddressUtil.cpp b/src/utils/inetAddressUtil.cpp index a50741f..3f7a43e 100644 --- a/src/utils/inetAddressUtil.cpp +++ b/src/utils/inetAddressUtil.cpp @@ -20,6 +20,12 @@ #define epicsExportSharedSymbols #include +// RTEMS 4.9 doesn't define this, but does implement SIOCGIFNETMASK +// and stores under the ifr_addr union member. +#ifndef ifr_netmask +# define ifr_netmask ifr_addr +#endif + using namespace std; using namespace epics::pvData;