Fix build when libutil.h exists but is deprecated

This commit is contained in:
Keith Winstein
2012-04-07 20:23:59 -04:00
parent c354a69ee6
commit 4d9483bc83
2 changed files with 9 additions and 3 deletions
+4 -3
View File
@@ -20,9 +20,6 @@
#include <errno.h>
#include <locale.h>
#ifdef HAVE_LIBUTIL_H
#include <libutil.h>
#endif
#include <string.h>
#include <termios.h>
#include <unistd.h>
@@ -59,6 +56,10 @@ extern "C" {
#include <util.h>
#endif
#if FORKPTY_IN_LIBUTIL
#include <libutil.h>
#endif
#include "networktransport.cc"
typedef Network::Transport< Terminal::Complete, Network::UserStream > ServerConnection;