TIOCGETP undeclared first use in a function

Asked by monodip


I am trying to isolate & build only the telnet client code.

sys_bsd.c is compiled with error :
code :
   ioctl(0, TIOCGETP, (char *)&ottyb);
error :
  'TIOCGETP' undeclared (first use in this function)

sys/ioctl.h is already included.

please suggest.

Question information

English Edit question
Ubuntu inetutils Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :

I am fairly sure that sys_bsd.c is BSD related code.

However, we only provide support for Ubuntu (GNU/Linux) here, not for NetBSD or FreeBSD issues.

The BSD operating systems are totally different.

Please read this:


It is better to use ssh instead of telnet for security reasons.

Can you help with this problem?

Provide an answer of your own, or ask monodip for more information if necessary.

To post a message you must log in.