OSDN Git Service

Move pty.h back to toys.h (under LSB 4.1 headers).
authorRob Landley <rob@landley.net>
Fri, 16 Jan 2015 19:55:32 +0000 (13:55 -0600)
committerElliott Hughes <enh@google.com>
Sat, 17 Jan 2015 03:10:28 +0000 (19:10 -0800)
lib/portability.h
toys.h

index ccac90c..bb1f5ae 100644 (file)
@@ -212,9 +212,6 @@ ssize_t getline(char **lineptr, size_t *n, FILE *stream);
 #include <utmpx.h>
 #endif
 
-#include <pty.h>
-
-
 // Some systems don't define O_NOFOLLOW, and it varies by architecture, so...
 #include <fcntl.h>
 #ifndef O_NOFOLLOW
diff --git a/toys.h b/toys.h
index 6672cfc..aa4381c 100644 (file)
--- a/toys.h
+++ b/toys.h
@@ -63,6 +63,7 @@
 #include <wctype.h>
 
 // LSB 4.1 headers
+#include <pty.h>
 #include <sys/ioctl.h>
 #include <sys/statfs.h>
 #include <sys/sysinfo.h>