#include "statd.h"
#include "xlog.h"
-#ifndef HAVE_DECL_AI_ADDRCONFIG
-#define AI_ADDRCONFIG 0
-#endif
-
/**
* statd_present_address - convert sockaddr to presentation address
* @sap: pointer to socket address to convert
buf, (socklen_t)sizeof(buf));
freeaddrinfo(ai);
if (!result)
- return NULL;
+ /* OK to use presentation address,
+ * if no reverse map exists */
+ return strdup(hostname);
return strdup(buf);
}