summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/Network.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index 036396b50df..0ee86c6472d 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -7,6 +7,16 @@
//
// **********************************************************************
+//
+// The following is required on HP-UX in order to bring in
+// the definition for the ip_mreq structure.
+//
+#ifdef __hpux
+#undef _XOPEN_SOURCE_EXTENDED
+#define _XOPEN_SOURCE
+#include <netinet/in.h>
+#endif
+
#include <IceUtil/StaticMutex.h>
#include <Ice/Network.h>
#include <Ice/LocalException.h>