Skip to contentSkip to conversation

fix posix userspace headers

PATCH Applied Jan Kiszka 2 participants 2 messages Dec 8, 2005 – Dec 16, 2005

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 fix posix userspace headers

Good evening,

this patch is required to compile some posix userspace program against 2.1 SVN.

Jan

posix/signal.h +8 -0
Index: include/posix/signal.h
===================================================================
@@ -20,6 +20,12 @@
 #ifndef _POSIX_SIGNAL_H
 #define _POSIX_SIGNAL_H
 
+#ifndef __KERNEL__
+
+#include_next <signal.h>
+
+#else /* __KERNEL__ */
+
 #include <xenomai/posix/thread.h>
 
 #define SIGACTION_FLAGS (SA_ONESHOT|SA_NOMASK|SA_SIGINFO)
@@ -46,4 +52,6 @@
 
 void pse51_signal_pkg_cleanup(void);
 
+#endif /* !__KERNEL__ */
+
 #endif /* !_POSIX_SIGNAL_H */
#1 lore raw
Quoted 7 lines · Jan Kiszka

Good evening,

this patch is required to compile some posix userspace program against 2.1 SVN.

Jan

Applied, thanks.

Quoted 35 lines

------------------------------------------------------------------------

Index: include/posix/signal.h
===================================================================

posix/signal.h +8 -1
@@ -20,6 +20,12 @@
 #ifndef _POSIX_SIGNAL_H
 #define _POSIX_SIGNAL_H
 
+#ifndef __KERNEL__
+
+#include_next <signal.h>
+
+#else /* __KERNEL__ */
+
 #include <xenomai/posix/thread.h>
 
 #define SIGACTION_FLAGS (SA_ONESHOT|SA_NOMASK|SA_SIGINFO)
@@ -46,4 +52,6 @@
 
 void pse51_signal_pkg_cleanup(void);
 
+#endif /* !__KERNEL__ */
+
 #endif /* !_POSIX_SIGNAL_H */
 
 
------------------------------------------------------------------------

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.