Bug 317 - add header so ptty functions are found
Summary: add header so ptty functions are found
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: -current
Hardware: Other FreeBSD
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-28 15:53 AEST by Dirk Meyer
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Meyer 2002-06-28 15:53:43 AEST
--- sshpty.c.orig       Wed Jun 26 01:21:42 2002
+++ sshpty.c    Fri Jun 28 07:09:38 2002
@@ -30,6 +30,9 @@
 #ifdef HAVE_PTY_H
 # include <pty.h>
 #endif
+#ifdef __FreeBSD__
+#include <libutil.h>
+#endif
 #if defined(HAVE_DEV_PTMX) && defined(HAVE_SYS_STROPTS_H)
 # include <sys/stropts.h>
 #endif
Comment 1 Damien Miller 2002-09-10 22:28:43 AEST
What is the failure if this header isn't added. I'd prefer to detect it in
configure rather than use a platform-specific define
Comment 2 Dirk Meyer 2002-09-11 06:56:58 AEST
The Prototyes for openpty() and are missing if the header is not there.
also realhostname_sa();

#ifdef HAVE_LIBUTIL_H
sounds fine like in loginrec.c
Comment 3 Damien Miller 2002-10-21 10:50:42 AEST
added to includes.h
Comment 4 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED