signal: compat sigevent struct
authorMarko Kreen <markokr@gmail.com>
Sat, 26 Feb 2011 11:13:08 +0000 (13:13 +0200)
committerMarko Kreen <markokr@gmail.com>
Sat, 26 Feb 2011 11:13:08 +0000 (13:13 +0200)
usual/signal.h

index b2edc3b91908b7fe8b8df0429963c9a486ec09c8..3fcb0b2d738edc4bc36ac5da8d0d37f6842a06fa 100644 (file)
 
 #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()
  */