about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-21 22:58:23 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-21 22:58:23 +0000
commit01cad722667c7b25535b2d248598f3d535e7caa9 (patch)
tree606a2436a10d7d48fcbb3e1097500d8a0b8144d1 /include
parent28f1c862ddaa3515d0f74102379301048c76cf0f (diff)
downloadglibc-01cad722667c7b25535b2d248598f3d535e7caa9.tar.gz
glibc-01cad722667c7b25535b2d248598f3d535e7caa9.tar.xz
glibc-01cad722667c7b25535b2d248598f3d535e7caa9.zip
Update.
1998-04-21 21:49  Zack Weinberg  <zack@rabi.phys.columbia.edu>

	* misc/sys/cdefs.h: New macro __REDIRECT to support changing the
	asm symbol name of functions.
	* include/features.h: Kill redundant test.

	* dirent/dirent.h: Use new macros to implement __USE_FILE_OFFSET64.
	* io/ftw.h: Likewise.
	* io/sys/stat.h: Likewise.
	* io/sys/statfs.h: Likewise.
	* io/sys/statvfs.h: Likewise.
	* libio/stdio.h: Likewise.
	* resource/sys/resource.h: Likewise.
	* rt/aio.h: Likewise.

	* posix/unistd.h: Use new macros for __USE_FILE_OFFSET64 and
	 __FAVOR_BSD.
	* signal/signal.h: Use new macros for BSD vs. SysV signal().

	* misc/Makefile: Drop bsd-compat.c.  Make libbsd-compat.a
	a dummy library.
	* misc/bsd-compat.c: Removed.
Diffstat (limited to 'include')
-rw-r--r--include/features.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/features.h b/include/features.h
index 141c05031f..935a113a3c 100644
--- a/include/features.h
+++ b/include/features.h
@@ -237,17 +237,17 @@
 #define	__GLIBC__	2
 #define	__GLIBC_MINOR__	1
 
-
-#if !defined __GNUC__ || __GNUC__ < 2
-/* In GCC version 2, (__extension__ EXPR) will not complain
-   about GCC extensions used in EXPR under -ansi or -pedantic.  */
-# define __extension__
-#endif
-
-
 /* This is here only because every header file already includes this one.  */
 #ifndef __ASSEMBLER__
 # include <sys/cdefs.h>
+
+/* If we don't have __REDIRECT, prototypes will be missing if
+   __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. */
+# if defined __USE_FILE_OFFSET64 && !defined __REDIRECT
+#  define __USE_LARGEFILE
+#  define __USE_LARGEFILE64
+# endif
+
 #endif
 
 /* This is here only because every header file already includes this one.  */