summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-06-08 09:01:45 +0200
committerStefan Metzmacher <metze@samba.org>2009-06-08 09:40:11 +0200
commitbccef8251654f52751ad65e9906323a73c47fdb4 (patch)
tree2e2a908904c96972782966fcc31c8f8fbd3528e7
parenteff9bcc9c74089d5f1e944449aa4ebb8a0c49d81 (diff)
downloadsamba-bccef8251654f52751ad65e9906323a73c47fdb4.tar.gz
samba-bccef8251654f52751ad65e9906323a73c47fdb4.tar.bz2
samba-bccef8251654f52751ad65e9906323a73c47fdb4.zip
replace: add fallback define for IOV_MAX
This hopefully fixes the build on IRIX. metze
-rw-r--r--lib/replace/system/network.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h
index 6add99c0db..c8364101a9 100644
--- a/lib/replace/system/network.h
+++ b/lib/replace/system/network.h
@@ -307,6 +307,22 @@ typedef unsigned short int sa_family_t;
#endif
#endif
+#ifndef IOV_MAX
+# ifdef UIO_MAXIOV
+# define IOV_MAX UIO_MAXIOV
+# else
+# ifdef __sgi
+ /*
+ * IRIX 6.5 has sysconf(_SC_IOV_MAX)
+ * which might return 512 or bigger
+ */
+# define IOV_MAX 512
+# else
+# error IOV_MAX and UIO_MAXIOV undefined
+# endif
+# endif
+#endif
+
#ifndef HAVE_STRUCT_ADDRINFO
#define HAVE_STRUCT_ADDRINFO
struct addrinfo {