ajacoutot 5558c792d3 First pass at pre-entively fixing ports that would break once guenther's header
pollution diff is in.

lang/squeak/vm does not build but it's due to the recent audio changes
games/xbattle: also fixes some conflicting implicit decl
print/hplip: also fixes some conflicting implicit decl
2016-09-10 13:03:40 +00:00

21 lines
536 B
Plaintext

$OpenBSD: patch-sic_c,v 1.4 2016/09/10 13:03:42 ajacoutot Exp $
--- sic.c.orig Sun Jun 16 08:03:32 2013
+++ sic.c Sat Sep 10 12:08:39 2016
@@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/select.h> /* fd_set */
#include <time.h>
#include <unistd.h>
@@ -173,6 +174,8 @@ main(int argc, char *argv[]) {
fflush(srv);
setbuf(stdout, NULL);
setbuf(srv, NULL);
+ if (pledge("stdio", NULL) == -1)
+ eprint("error: pledge:");
for(;;) { /* main loop */
FD_ZERO(&rd);
FD_SET(0, &rd);