Skip to content
Snippets Groups Projects
Commit b2aa107b authored by Ger van Diepen's avatar Ger van Diepen
Browse files

bug 962:

netdb.h not defined on Cray Catamount
parent 7f77b7a1
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,8 @@
#include <Common/SystemUtil.h>
#include <unistd.h>
#if !defined(__LIB_CATAMOUNT__)
// netdb is not available on Cray XT machines with Catamount.
#if defined HAVE_BGL && !defined HAVE_ZOID
// netdb is not available on BGL; all code using netdb will be
// conditionally included using the HAVE_BGL definition;
......@@ -32,6 +34,7 @@
#else
#include <netdb.h>
#endif
#endif
namespace LOFAR {
......@@ -186,6 +189,9 @@ uint32 myIPV4Address()
#if defined HAVE_BGL && !defined HAVE_ZOID
LOG_ERROR ("Function myIPV4Address not available for Blue Gene.");
return (0);
#elif defined __LIB_CATAMOUNT__
LOG_ERROR ("Function myIPV4Address not available for Cray Catamount.");
return (0);
#else
struct hostent* hostEnt;
if (!(hostEnt = gethostbyname(myHostname(false).c_str()))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment