projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
343cd24
)
signal: compat sigevent struct
author
Marko Kreen
<markokr@gmail.com>
Sat, 26 Feb 2011 11:13:08 +0000
(13:13 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Sat, 26 Feb 2011 11:13:08 +0000
(13:13 +0200)
usual/signal.h
patch
|
blob
|
blame
|
history
diff --git
a/usual/signal.h
b/usual/signal.h
index b2edc3b91908b7fe8b8df0429963c9a486ec09c8..3fcb0b2d738edc4bc36ac5da8d0d37f6842a06fa 100644
(file)
--- a/
usual/signal.h
+++ b/
usual/signal.h
@@
-31,6
+31,27
@@
#include <signal.h>
+/*
+ * Compat sigevent
+ */
+
+#ifndef SIGEV_NONE
+#define SIGEV_NONE 0
+#define SIGEV_SIGNAL 1
+#define SIGEV_THREAD 2
+union sigval {
+ int sival_int;
+ void *sival_ptr;
+};
+struct sigevent {
+ int sigev_notify;
+ int sigev_signo;
+ union sigval sigev_value;
+ void (*sigev_notify_function)(union sigval);
+
+};
+#endif
+
/*
* Compat sigaction()
*/