]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/svc_run.c
Define and use HIAVE_IFADDRS_H
[nfs-utils.git] / utils / statd / svc_run.c
index f6bcbb906df907cd847cbe57d5a042d008c89abe..67bb05cccfed5a486f8e294a5f575a3c961b2b43 100644 (file)
  * This is the RPC server side idle loop.
  * Wait for input, call server program.
  */
-#include "config.h"
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <errno.h>
 #include <time.h>
 #include "statd.h"
@@ -123,7 +127,8 @@ my_svc_run(void)
                        if (errno == EINTR || errno == ECONNREFUSED
                         || errno == ENETUNREACH || errno == EHOSTUNREACH)
                                continue;
-                       note(N_ERROR, "my_svc_run() - select: %m");
+                       note(N_ERROR, "my_svc_run() - select: %s",
+                               strerror (errno));
                        return;
 
                case 0: