Handle util.h if it exists instead of pty.h

This commit is contained in:
Quentin Smith
2012-02-26 01:35:54 -05:00
committed by Keith Winstein
parent a1671bcf3b
commit 19d284bfa4
4 changed files with 25 additions and 4 deletions
+8 -1
View File
@@ -16,12 +16,13 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <locale.h>
#include <string.h>
#include <langinfo.h>
#include <unistd.h>
#include <stdio.h>
#include <pty.h>
#include <stdlib.h>
#include <poll.h>
#include <sys/ioctl.h>
@@ -31,6 +32,12 @@
#include <sys/signalfd.h>
#include <time.h>
#if HAVE_PTY_H
#include <pty.h>
#elif HAVE_UTIL_H
#include <util.h>
#endif
#include "stmclient.h"
#include "swrite.h"
#include "completeterminal.h"