OSDN Git Service

- adds several config-options to allow for turning off certain features
[uclinux-h8/uClibc.git] / libutil / openpty.c
index 9a65e56..5f58476 100644 (file)
@@ -106,7 +106,7 @@ openpty (int *amaster, int *aslave, char *name, struct termios *termp,
 #endif
   int master, slave;
 
-  master = getpt ();
+  master = posix_openpt (O_RDWR);
   if (master == -1)
     return -1;