diff options
| author | Dan Nicolaescu | 2010-05-06 12:46:47 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-05-06 12:46:47 -0700 |
| commit | 2882364886562e5786f1b636c7660c1caaf6ba86 (patch) | |
| tree | 0796acf41a3c8243ccdc0a792e402e3571049bf0 /src | |
| parent | aca004303d7fe01ebe33b902b3dd45e21552175f (diff) | |
| download | emacs-2882364886562e5786f1b636c7660c1caaf6ba86.tar.gz emacs-2882364886562e5786f1b636c7660c1caaf6ba86.zip | |
Remove NEED_BSDTTY and NEED_UNISTD_H.
* s/hpux10-20.h (NEED_BSDTTY): Remove.
* s/aix4-2.h (NEED_UNISTD_H): Remove.
* systty.h: Simplify conditionals for including <sys/bsdtty.h>,
<sys/ptyio.h> and <unistd.h>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 3 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 3 | ||||
| -rw-r--r-- | src/systty.h | 7 |
4 files changed, 8 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3c0270e1fc4..29cf56225d1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | Remove NEED_BSDTTY and NEED_UNISTD_H. | ||
| 4 | * s/hpux10-20.h (NEED_BSDTTY): Remove. | ||
| 5 | * s/aix4-2.h (NEED_UNISTD_H): Remove. | ||
| 6 | * systty.h: Simplify conditionals for including <sys/bsdtty.h>, | ||
| 7 | <sys/ptyio.h> and <unistd.h>. | ||
| 8 | |||
| 3 | * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused. | 9 | * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused. |
| 4 | 10 | ||
| 5 | * Makefile.in (STARTFILES): Conditionally define to make the usage clear. | 11 | * Makefile.in (STARTFILES): Conditionally define to make the usage clear. |
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 0a36c8ff0df..bd327c7833e 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -109,9 +109,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 109 | It may not have been needed in certain earlier versions. */ | 109 | It may not have been needed in certain earlier versions. */ |
| 110 | #define HAVE_TCATTR | 110 | #define HAVE_TCATTR |
| 111 | 111 | ||
| 112 | /* Include unistd.h, even though we don't define POSIX. */ | ||
| 113 | #define NEED_UNISTD_H | ||
| 114 | |||
| 115 | /* AIX doesn't define this. */ | 112 | /* AIX doesn't define this. */ |
| 116 | #define unix 1 | 113 | #define unix 1 |
| 117 | 114 | ||
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index fe47b3b5645..320fa8b4d79 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -91,9 +91,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 91 | 91 | ||
| 92 | #define UNEXEC unexhp9k800.o | 92 | #define UNEXEC unexhp9k800.o |
| 93 | 93 | ||
| 94 | /* Include the file bsdtty.h, since this machine has job control. */ | ||
| 95 | #define NEED_BSDTTY | ||
| 96 | |||
| 97 | /* This is how to get the device name of the tty end of a pty. */ | 94 | /* This is how to get the device name of the tty end of a pty. */ |
| 98 | #define PTY_TTY_NAME_SPRINTF \ | 95 | #define PTY_TTY_NAME_SPRINTF \ |
| 99 | sprintf (pty_name, "/dev/pty/tty%c%x", c, i); | 96 | sprintf (pty_name, "/dev/pty/tty%c%x", c, i); |
diff --git a/src/systty.h b/src/systty.h index 057f58f6064..fcc6cf81e51 100644 --- a/src/systty.h +++ b/src/systty.h | |||
| @@ -51,11 +51,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 51 | #include <termios.h> | 51 | #include <termios.h> |
| 52 | #endif | 52 | #endif |
| 53 | 53 | ||
| 54 | #ifdef NEED_BSDTTY | 54 | #ifdef HPUX |
| 55 | #include <sys/bsdtty.h> | 55 | #include <sys/bsdtty.h> |
| 56 | #endif | ||
| 57 | |||
| 58 | #if defined (HPUX) && defined (HAVE_PTYS) | ||
| 59 | #include <sys/ptyio.h> | 56 | #include <sys/ptyio.h> |
| 60 | #endif | 57 | #endif |
| 61 | 58 | ||
| @@ -63,7 +60,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 63 | #include <sys/pty.h> | 60 | #include <sys/pty.h> |
| 64 | #endif /* AIX */ | 61 | #endif /* AIX */ |
| 65 | 62 | ||
| 66 | #if (defined (POSIX) || defined (NEED_UNISTD_H)) && defined (HAVE_UNISTD_H) | 63 | #ifdef HAVE_UNISTD_H |
| 67 | #include <unistd.h> | 64 | #include <unistd.h> |
| 68 | #endif | 65 | #endif |
| 69 | 66 | ||