Skip to contentSkip to conversation

fix some src compile problems

PATCH In review Wolfgang Grandegger 2 participants 3 messages May 18, 2007 – May 20, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix some src compile problems

Hello,

I needed the attached patch to get the user space stuff of Xenomai trunk, head of SVN cross compiled for PPC. Please apply. Thanks.

Wolfgang.

skins/posix/clock.c +2 -0
Index: src/skins/posix/clock.c
===================================================================
@@ -16,6 +16,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
  */
 
+#include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 #include <pthread.h>		/* For pthread_setcanceltype. */
 #include <posix/syscall.h>
skins/native/timer.c +2 -0
Index: src/skins/native/timer.c
===================================================================
@@ -16,6 +16,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
  */
 
+#include <stdio.h>
+#include <stdlib.h>
 #include <native/syscall.h>
 #include <native/timer.h>
 #include <asm/xenomai/arith.h>
testsuite/clocktest/clocktest.c +1 -1
Index: src/testsuite/clocktest/clocktest.c
===================================================================
@@ -160,7 +160,7 @@ int main(int argc, char *argv[])
 {
     int cpus = sysconf(_SC_NPROCESSORS_ONLN);
     int i;
-    char c;
+    int c;
 
     while ((c = getopt(argc,argv,"C:T:")) != EOF)
         switch (c) {
#1 lore raw
Quoted 4 lines · Wolfgang Grandegger

Hello,

I needed the attached patch to get the user space stuff of Xenomai trunk, head of SVN cross compiled for PPC. Please apply. Thanks.

I would say, just go ahead. The fixes are obvious and correct.

Thanks!
Jan

author Applied
#2 lore raw
Quoted 7 lines · Jan Kiszka
Quoted 4 lines · Wolfgang Grandegger

Hello,

I needed the attached patch to get the user space stuff of Xenomai trunk, head of SVN cross compiled for PPC. Please apply. Thanks.

I would say, just go ahead. The fixes are obvious and correct.

Applied, already 2 days ago. For some reasons, the problems do not show up with 2.6

Wolfgang.