From: John Hodge Date: Sat, 6 Oct 2012 13:34:06 +0000 (+0800) Subject: AcessNative - Fixed missing header (typo) X-Git-Tag: rel0.15~697 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b45391e1bbca0b04ffb2114409381d18627fa688;p=tpg%2Facess2.git AcessNative - Fixed missing header (typo) --- diff --git a/AcessNative/acesskernel_src/Makefile b/AcessNative/acesskernel_src/Makefile index 611509b1..be21e455 100644 --- a/AcessNative/acesskernel_src/Makefile +++ b/AcessNative/acesskernel_src/Makefile @@ -34,7 +34,7 @@ K_OBJ := $(addprefix $(KERNEL_SRC)obj-native-$(PLATFORM)/,$(KERNEL_OBJ)) DEPFILES = $(filter %.o,$(OBJ) $(N_OBJ) $(K_OBJ)) DEPFILES := $(DEPFILES:%=%.dep) -CPPFLAGS += -I include/ -I $(KERNEL_SRC)include/ +KCPPFLAGS = -I include/ -I $(KERNEL_SRC)include/ CFLAGS += -Wall -g -std=gnu99 LDFLAGS += -lSDL -lSDLmain -g -Wl,--defsym,__buildnum=$(BUILD_NUM) @@ -62,26 +62,26 @@ $(BIN): $(OBJ) $(N_OBJ) $(K_OBJ) $(BUILDINFO_OBJ) $(OBJ): obj-$(PLATFORM)/%.o: %.c @mkdir -p $(dir $@) @echo [CC] -o $@ - @$(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) - @$(CC) -M $(CPPFLAGS) -MT $@ -o $@.dep $< + @$(CC) -c $< -o $@ $(CFLAGS) $(KCPPFLAGS) $(CPPFLAGS) + @$(CC) -M $(CPPFLAGS) $(KCPPFLAGS) -MT $@ -o $@.dep $< $(K_OBJ): $(KERNEL_SRC)obj-native-$(PLATFORM)/%.o: $(KERNEL_SRC)%.c @mkdir -p $(dir $@) @echo [CC] -o $@ - @$(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) - @$(CC) -M $(CPPFLAGS) -MT $@ -o $@.dep $< + $(CC) -ffreestanding -c $< -o $@ $(CFLAGS) $(KCPPFLAGS) $(CPPFLAGS) + @$(CC) -ffreestanding -M $(KCPPFLAGS) $(CPPFLAGS) -MT $@ -o $@.dep $< $(N_OBJ): obj-$(PLATFORM)/%.o: %.c @mkdir -p $(dir $@) @echo [CC] -o $@ - @$(CC) -c $< -o $@ $(CFLAGS) + @$(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS) @$(CC) -M -MT $@ -o $@.dep $< $(BUILDINFO_SRC): $(filter-out $(BUILDINFO_OBJ), $(OBJ)) Makefile @echo "" > $@ - $(eval _GITHASH=$(shell git log -n 1 | head -n 1 | awk '{print $$2}')) - $(eval _GITCHANGED=$(shell git status --porcelain | grep -c '^ M ')) + $(eval _GITHASH=$(shell (git log -n 1 | head -n 1 | awk '{print $$2}') || echo UNK)) + $(eval _GITCHANGED=$(shell (git status --porcelain | grep -c '^ M ') || echo UNK)) @echo "const char gsKernelVersion[] = \"$(ACESS_VERSION)\";" >> $@ @echo "const char gsGitHash[] = \"$(_GITHASH)\";" >> $@ @echo "const char gsBuildInfo[] = \"Acess2 v$(KERNEL_VERSION) $(ARCH)-$(PLATFORM)\\\\r\\\\n\"" >> $@ diff --git a/AcessNative/acesskernel_src/server.c b/AcessNative/acesskernel_src/server.c index 82d4e700..79199798 100644 --- a/AcessNative/acesskernel_src/server.c +++ b/AcessNative/acesskernel_src/server.c @@ -20,7 +20,6 @@ typedef int socklen_t; # include # include # include // inet_ntop -# include "include/windows_helpers.h" #endif #define DONT_INCLUDE_SYSCALL_NAMES #include "../syscalls.h"