tar: support -T - and -X -
[oweals/busybox.git] / libbb / getpty.c
index 4bffd9ae635ff56fcba524d8230420eecd0b846a..6a15cff2fb36bcddd0ad2e58ebf119cba8c4660a 100644 (file)
@@ -3,7 +3,7 @@
  * Mini getpty implementation for busybox
  * Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
 #include "libbb.h"
@@ -19,7 +19,7 @@ int FAST_FUNC xgetpty(char *line)
        if (p > 0) {
                grantpt(p); /* chmod+chown corresponding slave pty */
                unlockpt(p); /* (what does this do?) */
-#if 0 /* if ptsname_r is not available... */
+#ifndef HAVE_PTSNAME_R
                const char *name;
                name = ptsname(p); /* find out the name of slave pty */
                if (!name) {