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,7 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <pty.h>
#include "config.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
@@ -39,6 +40,12 @@
#include <pwd.h>
#include <sys/time.h>
#if HAVE_PTY_H
#include <pty.h>
#elif HAVE_UTIL_H
#include <util.h>
#endif
#include "parser.h"
#include "completeterminal.h"
#include "swrite.h"