chiark / gitweb /
Regression tests compile on systems without poll(2). Do not install
[adns.git] / regress / hplayback.c.m4
index ce295d0b10703eac098f37f40b5b2ccb23308648..8e6424f3e67b8bb5267c6208058afc97f713f95f 100644 (file)
@@ -150,6 +150,7 @@ static void Pfdset(fd_set *set, int max) {
   }
 }
 
+#ifdef HAVE_POLL
 static int Ppollfdevents(void) {
   int events;
 
@@ -190,6 +191,7 @@ static void Ppollfds(struct pollfd *fds, int nfds) {
   }
   if (vb2.buf[vb2.used++] != hm_squote]hm_squote) Psyntax("pollfds end not ]");
 }
+#endif
 
 static void Paddr(struct sockaddr *addr, int *lenr) {
   struct sockaddr_in *sa= (struct sockaddr_in*)addr;