From 5931973029e9f38e875804e7034927534976e11f Mon Sep 17 00:00:00 2001 From: bentley Date: Wed, 13 Jan 2010 08:26:48 -0700 Subject: [PATCH] fix compile error on Linux --- Makefile | 2 +- src/fix/main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e285aa02..92ac48c4 100644 --- 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: diff --git a/src/fix/main.c b/src/fix/main.c index 35af6e8e..1dcdc520 100644 --- a/src/fix/main.c +++ b/src/fix/main.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "asmotor.h"