pty.c problem (was: OpenSSH 2.4.0 patch call..)

Pekka Savola pekkas at netcore.fi
Tue Jan 2 00:54:16 EST 2001


Another minor but difficult-to-fix-properly(?) issue:

pty.c: In function `pty_allocate':
pty.c:55: warning: implicit declaration of function `openpty'

this happens if you have HAVE_PTY_H.

To allow building out of the main directory, there is '-I. -I$(srcdir)' in
the Makefile.

Now, because there is 'pty.h', /usr/include/pty.h in '#include <pty.h>' is
never getting included (rather, ./pty.h is), causing implicit declaration.

Some ways to fix this(?):
 - rename pty.h to something else, would cause trouble with OpenBSD CVS
syncs
 - disable -I. -I$(srcdir) --> no building out of the main directory
 - there's got to be some other ways..

-- 
Pekka Savola                  "Tell me of difficulties surmounted,
Netcore Oy                    not those you stumble over and fall"
Systems. Networks. Security.   -- Robert Jordan: A Crown of Swords








More information about the openssh-unix-dev mailing list