As of glibc 2.8, struct ucred from <bits/socket.h> is only available if
__USE_GNU is #define'd. Using -D_GNU_SOURCE does exactly that and has the
nice side effect of "legalising" our usage of getopt_long(), which also relies
on -D_GNU_SOURCE according to its manpage.
---
This is a repost of
http://article.gmane.org/gmane.linux.iscsi.iscsi-target.devel/8541 usr/Makefile | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/usr/Makefile b/usr/Makefile
index 6e59110..864cd9a 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -1,4 +1,5 @@
CFLAGS += -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include
+CFLAGS += -D_GNU_SOURCE # required for glibc >= 2.8
PROGRAMS = ietd ietadm
LIBS = -lcrypto
--
1.5.4.3
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel