[Stgt-devel] Can't compile the git version
FUJITA Tomonori
tomof
Fri Aug 31 21:14:12 CEST 2007
From: Albert Pauw <albert.pauw at gmail.com>
Subject: [Stgt-devel] Can't compile the git version
Date: Fri, 31 Aug 2007 20:41:55 +0200
> I saw that there was an update in the repository so I updated my git
> version of tgt (git-pull),
> as I always do.
>
> Unfortunately, this new version it will not compile anymore.
>
> Did something get messed up in the repository as of today (August 31st)?
>
> Tried to make a new clone on my machine, but that didn't work either.
Sorry, I messed up when I added fc target mode support. Please try
this patch.
BTW, please use a plain-text mail format. I ignore html mails unless I
find an important subject.
diff --git a/usr/Makefile b/usr/Makefile
index 43565df..4c918d4 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -39,8 +39,8 @@ TGTD_OBJS += bs_sync.o
LIBS += -lcrypto -lpthread
endif
-ifneq ($(FC),)
-CFLAGS += -DFC -DUSE_KERNEL
+ifneq ($(FCP),)
+CFLAGS += -DFCP -DUSE_KERNEL
TGTD_OBJS += $(addprefix fc/, fc.o)
TGTD_OBJS += bs_mmap.o tgtif.o
endif
diff --git a/usr/driver.c b/usr/driver.c
index 2f6e154..068b410 100644
--- a/usr/driver.c
+++ b/usr/driver.c
@@ -39,7 +39,7 @@ struct tgt_driver *tgt_drivers[] = {
#ifdef XEN
&xen,
#endif
-#ifdef FC
+#ifdef FCP
&fc,
#endif
NULL,
More information about the stgt
mailing list