mail/postfix on Current (-DFREEBSD#)
Scot Hetzel
swhetzel at gmail.com
Wed Jun 13 20:45:45 UTC 2007
On 6/13/07, Johan Hendriks <Johan at 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.
More information about the freebsd-ports
mailing list