Jelajahi Sumber

ifdef util/pty.h (taken from st)

Jochen Sprickerhof 6 tahun lalu
induk
melakukan
25c86c9c73
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  1. 8 1
      ptty.c

+ 8 - 1
ptty.c

@@ -9,7 +9,14 @@
 #include <string.h>
 #include <termios.h>
 #include <unistd.h>
-#include <util.h>
+
+#if   defined(__linux)
+ #include <pty.h>
+#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+ #include <util.h>
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <libutil.h>
+#endif
 
 void
 die(const char *fmt, ...)