Browse Source

Fix compile problem when ASSUME_DEVPTS=false
getpt.c: In function 'getpt':
getpt.c:83: 'have_no_dev_ptmx' undeclared ...
oops.
-Erik

Eric Andersen 23 years ago
parent
commit
4ea4dcfee2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/stdlib/getpt.c

+ 2 - 0
libc/stdlib/getpt.c

@@ -80,7 +80,9 @@ getpt (void)
 	  /* If /dev/pts is not mounted then the UNIX98 pseudo terminals
              are not usable.  */
 	  close (fd);
+#if !defined UNIX98PTY_ONLY
 	  have_no_dev_ptmx = 1;
+#endif
 #endif
 	}
       else