+2005-01-21 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/engine_kqueue.c: Move <sys/types.h> earlier to fix build on
+ FreeBSD 5.x (which needs it for <sys/event.h>).
+
+ * ircd/fileio.c (fbopen): Replace BSDism S_IREAD, S_IWRITE with
+ portable equivalents.
+
+ * ircd/ircd_log.c (log_open): Likewise.
+
+ * ircd/os_generic.c (_XOPEN_SOURCE): Increase to 600 (SuSv3?) so
+ that IPv6 definitions become visible on FreeBSD 5.3.
+
+ * ircd/s_auth.c: Remove apparently unused <sys/file.h> because
+ it fails to compile on FreeBSD 5.3.
+
2005-01-22 Perry Lorier <isomer@undernet.org>
- * ircd/ircd_lexer.l: Fix missing ;
+ * ircd/ircd_parser.y: Fix missing ;
2005-01-19 Michael Poole <mdpoole@troilus.org>
/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <errno.h>
#include <signal.h>
+#include <sys/types.h>
#include <sys/event.h>
#include <sys/socket.h>
#include <sys/time.h>
-#include <sys/types.h>
#include <time.h>
#include <unistd.h>
break;
case 'w':
openmode = O_WRONLY | O_CREAT | O_TRUNC;
- pmode = S_IREAD | S_IWRITE;
+ pmode = S_IRUSR | S_IWUSR;
break;
case 'a':
openmode = O_WRONLY | O_CREAT | O_APPEND;
- pmode = S_IREAD | S_IWRITE;
+ pmode = S_IRUSR | S_IWUSR;
break;
case '+':
openmode &= ~(O_RDONLY | O_WRONLY);
if (lf && lf->fd < 0) {
alarm(3); /* if NFS hangs, we hang only for 3 seconds */
lf->fd = open(lf->file, O_WRONLY | O_CREAT | O_APPEND,
- S_IREAD | S_IWRITE);
+ S_IRUSR | S_IWUSR);
alarm(0);
}
}
*/
#include "config.h"
-#define _XOPEN_SOURCE 500 /**< make limits.h #define IOV_MAX */
+#define _XOPEN_SOURCE 600 /**< make limits.h #define IOV_MAX */
#define __EXTENSIONS__ 1 /**< make Solaris netinet/in.h know IPv6 */
#include "ircd_osdep.h"
#include <fcntl.h>
/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <sys/socket.h>
-#include <sys/file.h>
#include <sys/ioctl.h>
/** Array of message text (with length) pairs for AUTH status