From aab1c772bf0baa7a635149480feb3f51c20a2a05 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 3 Apr 1998 06:25:38 +0000 Subject: [PATCH] Update. 1998-04-03 06:22 Ulrich Drepper * sysdeps/unix/sysv/linux/getcwd.c: Make compilable with kernels before 2.1.92. --- ChangeLog | 5 +++++ posix/sys/types.h | 4 ++-- sysdeps/unix/sysv/linux/getcwd.c | 1 + 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 + + * sysdeps/unix/sysv/linux/getcwd.c: Make compilable with kernels + before 2.1.92. + 1998-04-02 Ulrich Drepper * 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 . */ # 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 -- 2.7.4