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.

20 lines
453 B

  1. --- imsg.orig 2014-12-28 13:24:02.771330936 -0600
  2. +++ imsg.c 2014-12-28 13:24:35.347331642 -0600
  3. @@ -70,6 +70,7 @@
  4. return (-1);
  5. again:
  6. +#ifdef HAVE_GETDTABLECOUNT
  7. if (getdtablecount() + imsg_fd_overhead +
  8. (CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int)
  9. >= getdtablesize()) {
  10. @@ -77,7 +78,8 @@
  11. free(ifd);
  12. return (-1);
  13. }
  14. -
  15. +#endif
  16. +
  17. if ((n = recvmsg(ibuf->fd, &msg, 0)) == -1) {
  18. if (errno == EMSGSIZE)
  19. goto fail;