freebsd-ports/games/xataxx/files/patch-main.c
Martin Wilke 6e00b2437a - Update MASTER_SITES
- Fix build with clang
- Add MAKE_JOBS_SAFE
- Reformat pkg-descr

PR:		175592
Submitted by:	Ports Fury
2013-02-04 14:26:51 +00:00

19 lines
347 B
C

--- main.c.orig
+++ main.c
@@ -1,4 +1,7 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include <X11/Xlib.h>
#include <math.h>
#include "struct.h"
@@ -160,7 +163,7 @@
int x;
{
int z1, z2, z3, z4, z=0;
- char nn[6];
+ static char nn[6];
z1 = (int) (x)/1000;
z2 = (int) (x)/100-(10*z1);