[Stgt-devel] Can't compile the git version

Albert Pauw albert.pauw
Sat Sep 1 09:47:15 CEST 2007


Sorry about the html part.

This fixed my compile thanks.

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