TIOCGETP undeclared first use in a function

Asked by monodip

Hi,

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu inetutils Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1

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:

http://www.cyberciti.biz/faq/ubuntu-linux-enable-telnet-service/

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.