Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 4f6ea52c361e98b9458c30059ea77ae7 > files > 6

fcoe-utils-1.0.14-3.fc14.src.rpm

--- fcoe-utils-1.0.8/Makefile.am.orig	2009-07-31 13:28:11.484799253 +0200
+++ fcoe-utils-1.0.8/Makefile.am	2009-07-31 13:28:38.331800646 +0200
@@ -5,7 +5,7 @@
 sbin_PROGRAMS = fcoeadm fcoemon fcping fipvlan fcnsq fcrls
 
 ## all targets should look for headers in the include directory
-AM_CPPFLAGS = -I${srcdir}/include -I${builddir}/include
+AM_CPPFLAGS = -I${srcdir}/include -I${builddir}/include -I/lib/modules/`rpm -q --list kernel | grep "^/lib/modules/.*/build$$" | cut -f4 -d"/" | sort -r | head -1`/build/include
 ## pass the sysconfdir into the C proprocessor
 AM_CPPFLAGS += -DSYSCONFDIR="\"${sysconfdir}\""
 AM_CFLAGS = -Wall