From 14c5bc08c23a0f96315889d095e03baea6c00f18 Mon Sep 17 00:00:00 2001 From: Balazs Gerofi Date: Tue, 9 Feb 2016 14:06:36 +0900 Subject: [PATCH] mcexec: check Linux version from actual kernel tree instead of system wide include --- executer/user/Makefile.in | 3 ++- executer/user/mcexec.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/executer/user/Makefile.in b/executer/user/Makefile.in index 330f448e..e784df2e 100644 --- a/executer/user/Makefile.in +++ b/executer/user/Makefile.in @@ -1,5 +1,6 @@ CC=@CC@ BINDIR=@BINDIR@ +KDIR ?= @KDIR@ CFLAGS=-Wall -O -fPIE -pie VPATH=@abs_srcdir@ TARGET=mcexec @@ -7,7 +8,7 @@ TARGET=mcexec all: $(TARGET) mcexec: mcexec.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -pthread -o $@ $^ $(EXTRA_OBJS) + $(CC) -I${KDIR} $(CFLAGS) $(EXTRA_CFLAGS) -pthread -o $@ $^ $(EXTRA_OBJS) clean: $(RM) $(TARGET) *.o diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c index 9057ba2c..2da3ed03 100644 --- a/executer/user/mcexec.c +++ b/executer/user/mcexec.c @@ -60,7 +60,7 @@ #include #include #include -#include +#include #include "../include/uprotocol.h" //#define DEBUG