[stgt] [PATCH] add libaio dependency checking bs_aio

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Fri Nov 18 14:08:56 CET 2011


Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/Makefile b/usr/Makefile
index 2c9eb60..13f6cf8 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -13,7 +13,7 @@ TGTD_OBJS += $(addprefix iscsi/, conn.o param.o session.o \
 		isns.o)
 TGTD_OBJS += bs_rdwr.o
 
-ifneq ($(shell test -e /usr/include/sys/eventfd.h && echo 1),)
+ifneq ($(shell test -e /usr/include/sys/eventfd.h && test -e /usr/include/libaio.h && echo 1),)
 CFLAGS += -DUSE_EVENTFD
 TGTD_OBJS += bs_aio.o
 LIBS += -laio
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list