mcexec: check Linux version from actual kernel tree instead of system wide include

This commit is contained in:
Balazs Gerofi
2016-02-09 14:06:36 +09:00
parent 7f01d273d0
commit 14c5bc08c2
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -60,7 +60,7 @@
#include <signal.h>
#include <sys/signalfd.h>
#include <sys/mount.h>
#include <linux/version.h>
#include <include/generated/uapi/linux/version.h>
#include "../include/uprotocol.h"
//#define DEBUG