19aa3f4fa6
Fixes build on Interix.
27 lines
674 B
Text
27 lines
674 B
Text
$NetBSD: patch-ad,v 1.1 2005/03/12 06:05:33 tv Exp $
|
|
|
|
--- client/adnstest.c.orig 2000-09-16 20:24:24.000000000 -0400
|
|
+++ client/adnstest.c
|
|
@@ -59,7 +59,7 @@ static void quitnow(int rc) {
|
|
exit(rc);
|
|
}
|
|
|
|
-#ifndef HAVE_POLL
|
|
+#if 0
|
|
#undef poll
|
|
int poll(struct pollfd *ufds, int nfds, int timeout) {
|
|
fputs("poll(2) not supported on this system\n",stderr);
|
|
@@ -292,9 +292,12 @@ int main(int argc, char *const *argv) {
|
|
mc= 0;
|
|
}
|
|
|
|
+#ifdef HAVE_POLL
|
|
if (strchr(owninitflags,'p')) {
|
|
r= adns_wait_poll(ads,&qu,&ans,&mcr);
|
|
- } else {
|
|
+ } else
|
|
+#endif
|
|
+ {
|
|
r= adns_wait(ads,&qu,&ans,&mcr);
|
|
}
|
|
if (r) failure_errno("wait/check",r);
|