summaryrefslogtreecommitdiff
path: root/libc/stdlib/grantpt.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-10-31 18:20:21 +0000
committerEric Andersen <andersen@codepoet.org>2002-10-31 18:20:21 +0000
commit6737908f74ff566748864548cf35bb1da8e64af6 (patch)
tree6eeafda4548f49d960e1b597c880a810a08a66f0 /libc/stdlib/grantpt.c
parentc734e7ca57f520e55236b21eaef16ac40099a378 (diff)
Ok, this commit is _huge_ and its gonna change the world. I've
been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
Diffstat (limited to 'libc/stdlib/grantpt.c')
-rw-r--r--libc/stdlib/grantpt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/stdlib/grantpt.c b/libc/stdlib/grantpt.c
index d49f0af4f..5b4427a0c 100644
--- a/libc/stdlib/grantpt.c
+++ b/libc/stdlib/grantpt.c
@@ -19,10 +19,10 @@
#include <limits.h>
#include <stdlib.h>
-/* If ASSUME_DEVPTS is defined, grantpt() reduces to a stub since we
+/* If __ASSUME_DEVPTS__ is defined, grantpt() reduces to a stub since we
assume that the devfs/devpts filesystem automatically manages the
permissions. */
-#if !defined ASSUME_DEVPTS
+#if !defined __ASSUME_DEVPTS__
#include <sys/statfs.h>
/* Constant that identifies the `devpts' filesystem. */
@@ -47,7 +47,7 @@ static int pts_name (int fd, char **pts, size_t buf_len);
int
grantpt (int fd)
{
-#if !defined ASSUME_DEVPTS
+#if !defined __ASSUME_DEVPTS__
struct statfs fsbuf;
# ifdef PATH_MAX
char _buf[PATH_MAX];
@@ -70,7 +70,7 @@ grantpt (int fd)
return 0;
}
-#if !defined ASSUME_DEVPTS
+#if !defined __ASSUME_DEVPTS__
# define grantpt __unix_grantpt
# include "unix_grantpt.c"
#endif