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: Derek Robert Price
Subject: Re: Windows Build Issue: function getpass prototype needed
Date: Tue, 11 May 2004 22:23:18 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Conrad T. Pino wrote:

>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);


Bracket the whole file in something like:

#ifndef UNISTD_H
#define UNISTD_H

. . .

#endif /*! UNISTD_H */


Other than that, it looks good.

Derek

- --
                *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAoYqVLD1OTBfyMaQRAjNXAJ9f9gDCZ2pSACJusNjgFvbFMoG/KQCdGLEQ
AIZ9/myExYu4CaB9f1lbzOw=
=qTvP
-----END PGP SIGNATURE-----





reply via email to

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