Portable build framework for OpenNTPD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
437 B

--- imsg.c.orig 2015-07-17 23:57:48.000000000 +0000
+++ imsg.c 2015-07-17 23:58:57.000000000 +0000
@@ -71,6 +71,7 @@
return (-1);
again:
+#ifdef HAVE_GETDTABLECOUNT
if (getdtablecount() + imsg_fd_overhead +
(CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int)
>= getdtablesize()) {
@@ -78,6 +79,7 @@
free(ifd);
return (-1);
}
+#endif
if ((n = recvmsg(ibuf->fd, &msg, 0)) == -1) {
if (errno == EMSGSIZE)