Date: Wed, 13 Jun 2007 15:45:44 -0500 From: "Scot Hetzel" <swhetzel@gmail.com> To: "Johan Hendriks" <Johan@double-l.nl> Cc: freebsd-ports@freebsd.org Subject: Re: mail/postfix on Current (-DFREEBSD#) Message-ID: <790a9fff0706131345w1ef36c86k4bdc54b8912d7571@mail.gmail.com> In-Reply-To: <57200BF94E69E54880C9BB1AF714BBCB011172@w2003s01.double-l.local> References: <57200BF94E69E54880C9BB1AF714BBCB011172@w2003s01.double-l.local>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/13/07, Johan Hendriks <Johan@double-l.nl> wrote: > I use FreeBSD on a lot of mailservers in combination with postfix. > When i compile on FreeBSD 5 i see messages like: > cc -DHAS_PCRE -I/usr/local/include -O -pipe -I. -DFREEBSD5 -c format_tv.c > > On FreeBSD 6 they look like : > cc -DHAS_PCRE -I/usr/local/include -O2 -fno-strict-aliasing -pipe -I. > -DFREEBSD6 -c mystrtok.c > > so i guess -DFREEBSD5 or 6 resembles the current version it runs on, but on > FreeBSD 7 i see this: > cc -DHAS_PCRE -I/usr/local/include -O2 -fno-strict-aliasing -pipe -I. > -I../../include -DFREEBSD5 -c rcpt_print.c > > it has the -DFREEBSD5 > > Is this an error on my system or is this suppose to happen. > and if so what does -DFREEBSD# means. > It is used in only 2 places in the postfix code: work/postfix*/src/util/sys_defs.h - The comment at the top of this file: /* * Specific platforms. Major release numbers differ for a good reason. So be * a good girl, plan for the future, and at least include the major release * number in the system type (for example, SUNOS5 or FREEBSD2). The system * type is determined by the makedefs shell script in the top-level * directory. Adding support for a new system type means updating the * makedefs script, and adding a section below for the new system. */ /* * 4.4BSD and close derivatives. */ #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \ || defined(FREEBSD5) || defined(FREEBSD6) \ || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \ || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \ || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \ || defined(NETBSD4) \ || defined(EKKOBSD1) So basically there is no difference between FreeBSD5 and FreeBSD6, as it is only used at this one location, and currently not used anywhere else in the code. work/postfix*/src/util/gccw.ref - This file is used by the 'make gcctest' to compare the output of building gccw.c to this file. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0706131345w1ef36c86k4bdc54b8912d7571>