about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-03 06:25:38 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-03 06:25:38 +0000
commitaab1c772bf0baa7a635149480feb3f51c20a2a05 (patch)
treec5b6db1b5679e30412e98c80bac952623d4f8ab4
parentbbe0c227a0808ce8e9d11c9a10077c3658dd1705 (diff)
downloadglibc-aab1c772bf0baa7a635149480feb3f51c20a2a05.tar.gz
glibc-aab1c772bf0baa7a635149480feb3f51c20a2a05.tar.xz
glibc-aab1c772bf0baa7a635149480feb3f51c20a2a05.zip
Update.
1998-04-03 06:22  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/getcwd.c: Make compilable with kernels
	before 2.1.92.
-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 f98779b68d..2ae3731fdd 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 113dd1415d..936b738621 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 fb483ac076..b34960eac9 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