aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--posix/sys/types.h4
-rw-r--r--sysdeps/unix/sysv/linux/getcwd.c1
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f98779b..2ae3731 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-04-03 06:22 Ulrich Drepper <drepper@cygnus.com>
+
+ * sysdeps/unix/sysv/linux/getcwd.c: Make compilable with kernels
+ before 2.1.92.
+
1998-04-02 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/syscalls.list: Add s_getcwd entry.
diff --git a/posix/sys/types.h b/posix/sys/types.h
index 113dd14..936b738 100644
--- a/posix/sys/types.h
+++ b/posix/sys/types.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 94, 95, 96, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -132,7 +132,7 @@ typedef unsigned int uint;
/* These size-specific names are used by some of the inet code. */
-#if !defined (__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 7
+#if !defined __GNUC__ || __GNUC__ < 2 || __GNUC_MINOR__ < 7
/* These types are defined by the ISO C 9x header <inttypes.h>. */
# ifndef __int8_t_defined
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
index fb483ac..b34960e 100644
--- a/sysdeps/unix/sysv/linux/getcwd.c
+++ b/sysdeps/unix/sysv/linux/getcwd.c
@@ -40,6 +40,7 @@ extern int __syscall_getcwd (char *buf, unsigned long size);
static int no_syscall_getcwd;
static int no_new_dcache = 1;
#else
+# define no_syscall_getcwd 1
static int no_new_dcache;
#endif