[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Windows Build Issue: function getpass prototype needed
From: |
Mark D. Baushke |
Subject: |
Re: Windows Build Issue: function getpass prototype needed |
Date: |
Tue, 11 May 2004 15:58:28 -0700 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Conrad T. Pino <Conrad@Pino.com> writes:
> Hi All,
>
> Function "getpass" is defined in "windows-NT\woe32.c"
> but there is no prototype available when compiling file
> "src/login.c".
>
> The prototype needed is:
>
> extern char * getpass( const char * );
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?
-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQFAoVqU3x41pRYZE/gRAufQAJ98SERpVwA5Mm+FCjf5Ealju/TRagCcC44O
2I+Raak1Ueoqfr588EZtSU4=
=dsbg
-----END PGP SIGNATURE-----
- Windows Build Issue: function getpass prototype needed, Conrad T. Pino, 2004/05/11
- Re: Windows Build Issue: function getpass prototype needed,
Mark D. Baushke <=
- Re: Windows Build Issue: function getpass prototype needed, Derek Robert Price, 2004/05/11
- RE: Windows Build Issue: function getpass prototype needed, Conrad T. Pino, 2004/05/11
- Re: Windows Build Issue: function getpass prototype needed, Mark D. Baushke, 2004/05/11
- RE: Windows Build Issue: function getpass prototype needed, Conrad T. Pino, 2004/05/11
- Re: Windows Build Issue: function getpass prototype needed, Derek Robert Price, 2004/05/11
- Re: Windows Build Issue: function getpass prototype needed, Mark D. Baushke, 2004/05/12
- Re: Windows Build Issue: function getpass prototype needed, Derek Robert Price, 2004/05/12
- Re: Windows Build Issue: function getpass prototype needed, Derek Robert Price, 2004/05/11