You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-puzzle/pathological/files/pathological-1.1.3-build.patch

28 lines
527 B

Use implicit rules to build write-highscores so we dont have to worry
about CC/CFLAGS/LDFLAGS/etc...
Include stdlib.h to get exit() prototype
--- write-highscores.c
+++ write-highscores.c
@@ -25,6 +25,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
+#include <stdlib.h>
#define BUFFER_SIZE 1024
--- Makefile
+++ Makefile
@@ -4,9 +4,6 @@
all: write-highscores html/wheel.png
-write-highscores: write-highscores.c
- gcc -s -o write-highscores write-highscores.c
-
html/wheel.png:
./makehtml