From: Michael Poole Date: Fri, 21 Jan 2005 22:52:22 +0000 (+0000) Subject: Changes to fix the compile for FreeBSD 5.3. X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=b987ec1bfed691964845ac23598ec2d90786addb;p=ircu2.10.12-pk.git Changes to fix the compile for FreeBSD 5.3. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1301 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index dd2dabf..4a0a0cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,22 @@ +2005-01-21 Michael Poole + + * ircd/engine_kqueue.c: Move earlier to fix build on + FreeBSD 5.x (which needs it for ). + + * 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 because + it fails to compile on FreeBSD 5.3. + 2005-01-22 Perry Lorier - * ircd/ircd_lexer.l: Fix missing ; + * ircd/ircd_parser.y: Fix missing ; 2005-01-19 Michael Poole diff --git a/ircd/engine_kqueue.c b/ircd/engine_kqueue.c index 0ff2d1f..6b4b299 100644 --- a/ircd/engine_kqueue.c +++ b/ircd/engine_kqueue.c @@ -33,10 +33,10 @@ /* #include -- Now using assert in ircd_log.h */ #include #include +#include #include #include #include -#include #include #include diff --git a/ircd/fileio.c b/ircd/fileio.c index 2684a38..9eef0a5 100644 --- a/ircd/fileio.c +++ b/ircd/fileio.c @@ -68,11 +68,11 @@ FBFILE* fbopen(const char *filename, const char *mode) 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); diff --git a/ircd/ircd_log.c b/ircd/ircd_log.c index 66b3318..008ab3b 100644 --- a/ircd/ircd_log.c +++ b/ircd/ircd_log.c @@ -197,7 +197,7 @@ log_open(struct LogFile *lf) 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); } } diff --git a/ircd/os_generic.c b/ircd/os_generic.c index f72bbe9..e99d521 100644 --- a/ircd/os_generic.c +++ b/ircd/os_generic.c @@ -22,7 +22,7 @@ */ #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" diff --git a/ircd/s_auth.c b/ircd/s_auth.c index a7d47f4..ad95e1f 100644 --- a/ircd/s_auth.c +++ b/ircd/s_auth.c @@ -62,7 +62,6 @@ #include /* #include -- Now using assert in ircd_log.h */ #include -#include #include /** Array of message text (with length) pairs for AUTH status