about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/shm_open.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-08-10 23:21:18 +0000
committerUlrich Drepper <drepper@redhat.com>2007-08-10 23:21:18 +0000
commit916ee8bcba20a92ce4c4633667b5b37a12f8cba3 (patch)
tree37ed6803c1f4d67053b1a94c772116faec7c7ddd /sysdeps/unix/sysv/linux/shm_open.c
parent22532966df95f86f0159c6317d0109b3246023a3 (diff)
downloadglibc-916ee8bcba20a92ce4c4633667b5b37a12f8cba3.tar.gz
glibc-916ee8bcba20a92ce4c4633667b5b37a12f8cba3.tar.xz
glibc-916ee8bcba20a92ce4c4633667b5b37a12f8cba3.zip
(shm_open): Fix typo in last change.
Diffstat (limited to 'sysdeps/unix/sysv/linux/shm_open.c')
-rw-r--r--sysdeps/unix/sysv/linux/shm_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/shm_open.c b/sysdeps/unix/sysv/linux/shm_open.c
index 0628427680..92d22cfa76 100644
--- a/sysdeps/unix/sysv/linux/shm_open.c
+++ b/sysdeps/unix/sysv/linux/shm_open.c
@@ -187,7 +187,7 @@ shm_open (const char *name, int oflag, mode_t mode)
 
 	  if (__builtin_expect (flags, 0) >= 0)
 	    {
-# ifndef O_CLOEXEC
+# ifdef O_CLOEXEC
 	      if (have_o_cloexec == 0)
 		have_o_cloexec = (flags & FD_CLOEXEC) == 0 ? -1 : 1;
 	      if (have_o_cloexec < 0)