summary refs log tree commit diff
path: root/signal
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-05-10 04:49:53 +0000
committerUlrich Drepper <drepper@redhat.com>2004-05-10 04:49:53 +0000
commit66b3d19800bf84dec3aaa2112de9b0e8b98dd9c9 (patch)
tree13151e3069280d4631d5991c962fa19196ad9b38 /signal
parentcdbf48bed66758a785695faef64d44ef96ffa372 (diff)
downloadglibc-66b3d19800bf84dec3aaa2112de9b0e8b98dd9c9.tar.gz
glibc-66b3d19800bf84dec3aaa2112de9b0e8b98dd9c9.tar.xz
glibc-66b3d19800bf84dec3aaa2112de9b0e8b98dd9c9.zip
Update.
2004-05-09  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/generic/sigpause.c: Prevent sigpause prototype.
	* sysdeps/posix/sigpause.c: Likewise.
	* signal/signal.h: Don't define sigpause macro unless needed.
Diffstat (limited to 'signal')
-rw-r--r--signal/signal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/signal/signal.h b/signal/signal.h
index 2b57180695..db8b0b571d 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -157,9 +157,10 @@ extern int sigpause (int __mask) __THROW;
 # ifdef __USE_XOPEN
 #  ifdef __GNUC__
 extern int sigpause (int __sig) __asm__ ("__xpg_sigpause");
-#  endif
+#  else
 /* Remove a signal from the signal mask and suspend the process.  */
-#  define sigpause(sig) __sigpause ((sig), 1)
+#   define sigpause(sig) __sigpause ((sig), 1)
+#  endif
 # endif
 #endif