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
Patch from Terje Rosten:
To compile tgt with gcc-4.3 in FC9 we needed this patch.
Signed-off-by: Terje Rosten <[EMAIL PROTECTED]>
diff --git a/usr/iscsi/iscsid.c b/usr/iscsi/iscsid.c
index 490a743..0018437 100644
--- a/usr/iscsi/iscsid.c
+++ b/usr/iscsi/iscsid.c
@@ -24,6 +24,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
+#define _GNU_SOURCE 1
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
diff --git a/usr/iscsi/isns.c b/usr/iscsi/isns.c
index 81b2874..df931cc 100644
--- a/usr/iscsi/isns.c
+++ b/usr/iscsi/isns.c
@@ -19,6 +19,7 @@
* 02110-1301 USA
*/
+#define _GNU_SOURCE 1
#include <errno.h>
#include <netdb.h>
#include <stdio.h>
diff --git a/usr/mgmt.c b/usr/mgmt.c
index 041f0ff..4ce5359 100644
--- a/usr/mgmt.c
+++ b/usr/mgmt.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
+#define _GNU_SOURCE 1
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
_______________________________________________
Stgt-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/stgt-devel