Undo feature selection for ftruncate.
authorUlrich Drepper <drepper@redhat.com>
Tue, 21 Sep 2010 18:01:10 +0000 (11:01 -0700)
committerUlrich Drepper <drepper@redhat.com>
Tue, 21 Sep 2010 18:01:10 +0000 (11:01 -0700)
ChangeLog
posix/unistd.h

index 7a5c96d..34af34d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-21  Ulrich Drepper  <drepper@redhat.com>
+
+       [BZ #12037]
+       * posix/unistd.h: Undo change of feature selection for ftruncate from
+       2010-01-11.
+
 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
index f8b84e3..5ebcaf1 100644 (file)
@@ -1020,6 +1020,9 @@ extern int truncate64 (__const char *__file, __off64_t __length)
      __THROW __nonnull ((1)) __wur;
 # endif
 
+#endif /* Use BSD || X/Open Unix || POSIX 2008.  */
+
+#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
 
 /* Truncate the file FD is open on to LENGTH bytes.  */
 # ifndef __USE_FILE_OFFSET64