Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 3 Apr 1998 06:25:38 +0000 (06:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 3 Apr 1998 06:25:38 +0000 (06:25 +0000)
1998-04-03 06:22  Ulrich Drepper  <drepper@cygnus.com>

* sysdeps/unix/sysv/linux/getcwd.c: Make compilable with kernels
before 2.1.92.

ChangeLog
posix/sys/types.h
sysdeps/unix/sysv/linux/getcwd.c

index f98779b..2ae3731 100644 (file)
--- 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.
index 113dd14..936b738 100644 (file)
@@ -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
index fb483ac..b34960e 100644 (file)
@@ -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