ports/net/drawterm/files/patch-include_unix.h
Steven Kreuzer 5ecc1f35f9 r285140 introduced a fdclose(3) function which shadows a net/drawterm function
definition. Shadow the stdio prototype with a macro and undef it after
including stdio.h

Convert port to the USES framework

Regenerate the patch-Make.pthread file using makepatch

PR:		201444
Submitted by:	winston@ml1.net (maintainer)
2015-07-14 14:47:30 +00:00

12 lines
244 B
C

--- include/unix.h.orig 2015-07-13 22:14:41 UTC
+++ include/unix.h
@@ -11,7 +11,9 @@
#define _FILE_OFFSET_BITS 64
+#define fdclose sysfdclose
#include <stdio.h>
+#undef fdclose
#include <stdlib.h>
#include <string.h>
#include <math.h>