about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--io/sys/stat.h2
-rw-r--r--nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h8
3 files changed, 7 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index aff3e72425..204d9964d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
 
+	* io/sys/stat.h: The lstat functions have been mandatory since 2001.
+
 	* time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
 
 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 4b21a2e1ce..98b950d5f2 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -254,7 +254,7 @@ extern int fstatat64 (int __fd, __const char *__restrict __file,
      __THROW __nonnull ((2, 3));
 #endif
 
-#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
+#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
 # ifndef __USE_FILE_OFFSET64
 /* Get file attributes about FILE and put them in BUF.
    If FILE is a symbolic link, do not follow it.  */
diff --git a/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h b/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
index 06d35ceb16..5724fa33a3 100644
--- a/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
+++ b/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
@@ -1,5 +1,5 @@
 /* Define POSIX options for Linux.
-   Copyright (C) 1996-2004, 2006, 2008 Free Software Foundation, Inc.
+   Copyright (C) 1996-2004, 2006, 2008, 2009 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
@@ -17,8 +17,8 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef	_POSIX_OPT_H
-#define	_POSIX_OPT_H	1
+#ifndef	_BITS_POSIX_OPT_H
+#define	_BITS_POSIX_OPT_H	1
 
 /* Job control is supported.  */
 #define	_POSIX_JOB_CONTROL	1
@@ -181,4 +181,4 @@
 /* Typed memory objects are not available.  */
 #define _POSIX_TYPED_MEMORY_OBJECTS	-1
 
-#endif /* posix_opt.h */
+#endif /* bits/posix_opt.h */