ref: 5931973029e9f38e875804e7034927534976e11f
parent: a913dc01b52ed57bbc5a81844c67c4d30c7cd6fb
author: bentley <[email protected]>
date: Wed Jan 13 03:26:48 EST 2010
fix compile error on Linux
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
localversion = $(shell bash scripts/localversion.sh)
-cflags = -Wall -Iinclude -Iinclude/asm/gameboy -DLOCALVERSION=\"$(localversion)\" -g -std=c99
+cflags = -Wall -Iinclude -Iinclude/asm/gameboy -DLOCALVERSION=\"$(localversion)\" -g -std=c99 -D_POSIX_C_SOURCE=200112L
all:
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -9,6 +9,7 @@
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
+#include <unistd.h>
#include "asmotor.h"