summary refs log tree commit diff
path: root/errno.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-24 20:36:21 +0000
committerRoland McGrath <roland@gnu.org>1996-01-24 20:36:21 +0000
commit555f3a396ae65187cac996b2302c95cc52541d49 (patch)
tree9e432b5593f61d7cd854e8b1355d076e21c032b7 /errno.h
parent914d9d7bdfdafd7a7c4416cb6f58bb5e844d3482 (diff)
downloadglibc-555f3a396ae65187cac996b2302c95cc52541d49.tar.gz
glibc-555f3a396ae65187cac996b2302c95cc52541d49.tar.xz
glibc-555f3a396ae65187cac996b2302c95cc52541d49.zip
* sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
	* Makerules: Use -include for generated makefiles.

	* errno.h: Don't declare errno if it's defined as a macro.
Diffstat (limited to 'errno.h')
-rw-r--r--errno.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/errno.h b/errno.h
index 0bcbc964c5..e4c8a4e92b 100644
--- a/errno.h
+++ b/errno.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 93, 94, 95, 96 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
@@ -37,8 +37,14 @@ __BEGIN_DECLS
 #undef	__need_Emath
 
 #ifdef	_ERRNO_H
-/* Declare the `errno' variable.  */
+/* Declare the `errno' variable, unless it's defined as a macro by
+   errnos.h.  This is the case in GNU, where it is a per-thread variable.
+   This redeclaration using the macro still works, but it will be a
+   function declaration without a prototype and may trigger a
+   -Wstrict-prototypes warning.  */
+#ifndef	errno
 extern int errno;
+#endif
 
 #ifdef __USE_GNU
 /* The full and simple forms of the name with which the program was