On Thu, 14 Feb 2008 12:28:39 -0600 Mike Christie <[EMAIL PROTECTED]> wrote:
> Hey, > > Here is a patch from the Fedora tgt maintainer that is in the fedora > tree. It fixes the compilation error: > > > iscsi/iscsid.c: In function 'text_scan_text': > iscsi/iscsid.c:680: error: 'NI_MAXHOST' undeclared (first use in this > function) > iscsi/iscsid.c:680: error: (Each undeclared identifier is reported only once > iscsi/iscsid.c:680: error: for each function it appears in.) > iscsi/iscsid.c:680: warning: unused variable 'buf' > make: *** [iscsi/iscsid.o] Error 1 How about this? diff --git a/usr/Makefile b/usr/Makefile index 13c77d2..48de052 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -48,7 +48,7 @@ endif INCLUDES += -I. -I../include -I$(KERNELSRC)/include -CFLAGS += -D_LARGEFILE64_SOURCE +CFLAGS += -D_GNU_SOURCE CFLAGS += $(INCLUDES) CFLAGS += -g -O2 -Wall -Wstrict-prototypes -fPIC _______________________________________________ Stgt-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/stgt-devel
