summaryrefslogtreecommitdiff
path: root/games/xataxx/files/patch-bits.c
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-02-04 14:26:51 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-02-04 14:26:51 +0000
commit6e00b2437a5c3f01dcbbfa4a25e1a5c750c3fbf1 (patch)
treefb05702e81b0ea88c0d3803338b254a808634835 /games/xataxx/files/patch-bits.c
parent- Update MASTER_SITES (diff)
- Update MASTER_SITES
- Fix build with clang - Add MAKE_JOBS_SAFE - Reformat pkg-descr PR: 175592 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=311619
Diffstat (limited to 'games/xataxx/files/patch-bits.c')
-rw-r--r--games/xataxx/files/patch-bits.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/games/xataxx/files/patch-bits.c b/games/xataxx/files/patch-bits.c
new file mode 100644
index 000000000000..8882c611f34b
--- /dev/null
+++ b/games/xataxx/files/patch-bits.c
@@ -0,0 +1,22 @@
+--- bits.c.orig
++++ bits.c
+@@ -1,7 +1,10 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <ctype.h>
+ #include <X11/Xlib.h>
++#include <X11/Xutil.h>
+ #include <math.h>
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/time.h>
+ #include "struct.h"
+@@ -16,7 +19,7 @@
+ #define NFDSHIFT 5 /* Shift based on above */
+ #ifndef howmany
+ #define howmany(x, y) (((x)+((y)-1))/(y))
+-#endif howmany
++#endif
+
+ #define NBBY 8 /* number of bits in a byte */
+