Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Sun, 10 Dec 2000 19:02:30 +0000 (19:02 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Sun, 10 Dec 2000 19:02:30 +0000 (19:02 +0000)
Log message:

Make sure IOV_MAX gets defined on a couple of platforms...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@332 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/os_bsd.c
ircd/os_generic.c

index 17c5028d7085061b6266b72acbafb00ead97f04a..6f7b0715ec1d910a4f054dad9ce46c7f03924036 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-12-10  Kevin L. Mitchell  <klmitch@mit.edu>
+
+       * ircd/os_generic.c: make sure IOV_MAX gets defined, just in case
+
+       * ircd/os_bsd.c: apparently BSD doesn't have IOV_MAX defined
+       anywhere intelligent...
+
 2000-12-09  Kevin L. Mitchell  <klmitch@mit.edu>
 
        * ircd/send.c (send_queued): call deliver_it with appropriate
index a4d3a9ae3d7a84424d83667833f023a0cb2993f3..7163e0f06f2a0adce2a59c611004ca6a6bb519a4 100644 (file)
 #include <sys/uio.h>
 #include <unistd.h>
 
+#ifndef IOV_MAX
+#define IOV_MAX 16     /* minimum required */
+#endif
+
 #ifdef HPUX
 #include <sys/syscall.h>
 #define getrusage(a,b) syscall(SYS_GETRUSAGE, a, b)
index 7e36564125fe8b2efd0dcb52ae46147603b796b4..8c654597e8e84c5f42452c469be90aa48a1a69c5 100644 (file)
 #include <unistd.h>
 #endif
 
+#ifndef IOV_MAX
+#define IOV_MAX 16     /* minimum required */
+#endif
+
 #ifdef HPUX
 #include <sys/syscall.h>
 #define getrusage(a,b) syscall(SYS_GETRUSAGE, a, b)