about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-08-21 19:44:56 +0000
committerUlrich Drepper <drepper@redhat.com>2006-08-21 19:44:56 +0000
commit3997b7c41343589195893e88607798db44278d09 (patch)
treeb83489c367ce030c20b4872e730480ba11655c79 /sysdeps/unix
parent2b34af01c389f5295a0e7e2b3b1b2a2c41567b02 (diff)
downloadglibc-3997b7c41343589195893e88607798db44278d09.tar.gz
glibc-3997b7c41343589195893e88607798db44278d09.tar.xz
glibc-3997b7c41343589195893e88607798db44278d09.zip
[BZ #3040]
2006-08-21  Ulrich Drepper  <drepper@redhat.com>
	[BZ #3040]
	* sysdeps/unix/sysv/linux/openat.c: Fix compilation if
	__ASSUME_ATFCTS is defined.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/openat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/openat.c b/sysdeps/unix/sysv/linux/openat.c
index 7dfe367425..df53b6cf2c 100644
--- a/sysdeps/unix/sysv/linux/openat.c
+++ b/sysdeps/unix/sysv/linux/openat.c
@@ -28,9 +28,10 @@
 #include <not-cancel.h>
 
 
-#if !defined OPENAT && !defined __ASSUME_ATFCTS
+#ifndef OPENAT
 # define OPENAT openat
 
+# ifndef __ASSUME_ATFCTS
 /* Set errno after a failed call.  If BUF is not null,
    it is a /proc/self/fd/ path name we just tried to use.  */
 void
@@ -61,6 +62,7 @@ __atfct_seterrno (int errval, int fd, const char *buf)
 }
 
 int __have_atfcts;
+# endif
 #endif