You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
Index: various/util/src/pseudo.c
|
|
|
|
|
--- various/util/src/pseudo.c.orig 2009-10-05 12:23:32 +0200
|
|
|
|
|
+++ various/util/src/pseudo.c 2010-01-05 10:52:46 +0100
|
|
|
|
|
@@ -35,6 +35,7 @@
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
+#include <sys/types.h>
|
|
|
|
|
#define _GNU_SOURCE /* ptsname_r() under Linux */
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
#include <grp.h>
|
|
|
|
|
@@ -53,7 +54,6 @@
|
|
|
|
|
#include <libutil.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
-#include <sys/types.h>
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
@@ -329,6 +329,7 @@
|
|
|
|
|
|
|
|
|
|
/* Turn the slave into a terminal */
|
|
|
|
|
|
|
|
|
|
+#ifndef __FreeBSD__
|
|
|
|
|
#ifndef HAVE_CYGWIN
|
|
|
|
|
#ifndef HAVE_LINUX /* linux does not use the streams module */
|
|
|
|
|
/*
|
|
|
|
|
@@ -359,6 +360,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
|
#else /* HAVE_DEV_PTMX */
|
|
|
|
|
#ifdef HAVE_DEV_PTS_AND_PTC
|