bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Windows Build Issue: function getpass prototype needed


From: Conrad T. Pino
Subject: RE: Windows Build Issue: function getpass prototype needed
Date: Tue, 11 May 2004 17:07:04 -0700

Hi Mark & Derek,

> From: Derek Robert Price
> 
> Mark D. Baushke wrote:
> 
> > Actually, for a C89 or C99 prototype, you can drop the 'extern ' part
> > of the line and just use:
> >
> > char * getpass (const char *prompt);
> >
> > for what it is worth, under FreeBSD and GNU/Linux, the declaration is
> > found in the <unistd.h> include file.
> >
> > >I'd like some input as to the best place to put it.
> >
> > I suppose it would make as much sense as anything to have you creatae
> > a windows-NT\unistd.h file and change windows-NT/config.h to
> > '#define HAVE_UNISTD_H' instead of using a #undef for it.
> >
> > Are there any other opinions out there?
> 
> That works for me.

Suggestion works very well.  Warning gone with no side effects.

Pleas comment on proposed "windows-NT/unistd.h" file that follows.

Conrad

/* unistd.h -- Unix standard function prototypes

   Copyright (C) 2004 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */

/* Written by Conrad T. Pino and Mark D. Baushke */

char * getpass (const char *prompt);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]