patch-server_c 589 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-server_c,v 1.1.1.1 2017/02/16 20:06:03 jasper Exp $
  2. --- server.c.orig Tue Mar 29 05:30:07 2016
  3. +++ server.c Wed Feb 8 20:57:39 2017
  4. @@ -24,7 +24,7 @@
  5. #include <sys/wait.h>
  6. #include <errno.h>
  7. -#include <event.h>
  8. +#include <event2/event.h>
  9. #include <fcntl.h>
  10. #include <signal.h>
  11. #include <stdio.h>
  12. @@ -167,7 +167,7 @@ server_start(struct event_base *base, int lockfd, char
  13. #ifdef __OpenBSD__
  14. if (pledge("stdio rpath wpath cpath fattr unix getpw recvfd proc exec "
  15. - "tty ps", NULL) != 0)
  16. + "tty ps inet", NULL) != 0)
  17. fatal("pledge failed");
  18. #endif