This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
A patch for signal/signal.h
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: A patch for signal/signal.h
- From: hjl@lucon.org (H.J. Lu)
- Date: Sat, 24 Oct 1998 17:59:34 -0700 (PDT)
- Cc: libc-hacker@cygnus.com (GNU C Library)
I think that is another POSIX.4 item.
--
H.J. Lu (hjl@gnu.org)
---
Sat Oct 24 17:58:18 1998 H.J. Lu <hjl@gnu.org>
* signal/signal.h (timespec, siginfo_t, sigwait, sigwaitinfo,
sigtimedwait, sigqueue): Protect with __USE_POSIX4.
Index: signal/signal.h
===================================================================
RCS file: /home/work/cvs/gnu/glibc/signal/signal.h,v
retrieving revision 1.1.1.21
diff -u -r1.1.1.21 signal.h
--- signal.h 1998/09/14 14:44:46 1.1.1.21
+++ signal.h 1998/10/24 00:32:30
@@ -179,12 +179,16 @@
#ifdef __USE_POSIX
+# ifdef __USE_POSIX4
/* We need `struct timespec' later on. */
# define __need_timespec
# include <time.h>
/* Get the `siginfo_t' type plus the needed symbols. */
# include <bits/siginfo.h>
+# else
+typedef struct __siginfo siginfo_t;
+# endif
/* Clear all signals from SET. */
extern int sigemptyset __P ((sigset_t *__set));
@@ -236,6 +240,7 @@
extern int sigpending __P ((sigset_t *__set));
+# ifdef __USE_POSIX4
/* Select any of pending signals from SET or wait for any to arrive. */
extern int sigwait __P ((__const sigset_t *__set, int *__sig));
@@ -251,6 +256,7 @@
signal. */
extern int sigqueue __P ((__pid_t __pid, int __sig,
__const union sigval __val));
+# endif
#endif /* Use POSIX. */