atom feed4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] More Courier on O...
FromSent OnAttachments
Steve ShockleyJun 29, 2007 8:10 pm 
Sam VarshavchikJun 29, 2007 8:45 pm 
Steve ShockleyJun 29, 2007 8:50 pm 
Lisa MuirJul 1, 2007 12:24 am 
Subject:Re: [courier-users] More Courier on OpenBSD
From:Lisa Muir (34.2@gmail.com)
Date:Jul 1, 2007 12:24:19 am
List:net.sourceforge.lists.courier-users

On 6/30/07, Sam Varshavchik <mrs@courier-mta.com> wrote:

It's defining a function called stdin.

My guess is that on OpenBSD, 'stdin' is a macro of some sorts, which causes havoc here.

Your guess is wrong, its not OpenBSD specific, it is a C & C++ language reserved identifier, its only through poor implementations of the languages that it works on the other platforms.

http://www.noncombatant.org/trove/c-reserved-identifiers.html

There's no easy fix except for me to rename these two functions, and change every reference to them.

This you should do, because when the other platforms fix this bug in their compilers, your code will break on all platforms.

Lisa.