I'll fix the getopt thing again. I un-commented it out when wv separated. 
And like I said, I'll cahnge the mkstemp thing. It's in stdlib.h so I 
thought that maybe, just maybe it'd be defined across platforms as some sort 
of C standard. Silly me...

Dom


>From: Thomas Fletcher <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Tinderbox tyrant (wv issues)
>Date: Fri, 13 Oct 2000 08:43:20 -0400
>
>Geeze guys ... are we going to have to go through this
>every couple of days =;^{
>
>Sam's update of wv has broken every platform except for
>Linux.  Why?
>
>Windows:
>       int mkstemp(char *path)
>Doesn't exist on the Windows platform, this is a
>traditional unix command. What windows function can
>we use to encapsulate the creation of a temporary file
>returning an fd to the caller?
>
>Windows heads (or just someone who can look up the
>function behaviour so we can code a solution).
>
>BSD/BeOS/QNX:
>       evil getopt() prototype clashing
>You'd think that we would have fixed this already given
>the number of times that it has bitten us.  Is there a
>reason that we can't NOT PROTOTYPE getopt if config.h
>declares HAVE_UNISTD_H ... this is the official location
>for getopt() to be prototyped according to the Single
>Unix Open Specification v 2 (ie XOPEN group).  Otherwise
>my suggestion is to:
>
>-Always use the wv internal getopt() but don't even
>try and call it getopt() but prefix it (and all of
>the other global variables associated with it) with
>wv_.  This would solve our compatability/header problem
>once and for all at the cost of a little bit of lack
>of re-use of system getopt() calls (which aren't being
>used anyway if you link in the getopt() object file).
>
>Incidentally the code doesn't even use getopt() itself
>anywhere, so why even bother with the prototype.
>
>Dom, as the keeper of wv would you mind commenting on
>these things for me (us).
>
>Thanks,
>   Thomas
>
>
>-------------------------------------------------------------
>Thomas (toe-mah) Fletcher       QNX Software Systems
>[EMAIL PROTECTED]                 Neutrino Development Group
>(613)-591-0931                  http://www.qnx.com/~thomasf
>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.




Reply via email to