Commit 378ac314 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Have just one conditional to include unistd.h.

Test NEED_UNISTD_H, not AIX and IRIX4.
(UNISTD_H_INCLUDED): Don't define or test this.
parent caeb79ef
......@@ -138,22 +138,13 @@ static struct sensemode {
#if defined (HPUX) && defined (HAVE_PTYS)
#include <sys/ptyio.h>
#endif
#ifdef AIX
#include <sys/pty.h>
#include <unistd.h>
#define UNISTD_H_INCLUDED
#endif /* AIX */
#ifdef IRIX4
/* Get _getpty prototype */
#include <unistd.h>
#define UNISTD_H_INCLUDED
#endif
#if defined (POSIX) && !defined (UNISTD_H_INCLUDED) && defined (HAVE_UNISTD_H)
#if (defined (POSIX) || defined (NEED_UNISTD_H)) && defined (HAVE_UNISTD_H)
#include <unistd.h>
#define UNISTD_H_INCLUDED
#endif
#ifdef SYSV_PTYS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment