[En-Nut-Discussion] unix port & header files

Matthias Ringwald mringwal at inf.ethz.ch
Wed Mar 3 19:47:20 CET 2004


hi

I'm trying to run nut/os on top of a unix system right now.
I started by inserting tons of "#ifndef NUT_UNIX_EMULATION" until the 
os folder did compile.
Now I tried to compile the threads example. I'm able to compile this.

but I run into problems, because I have duplicate header files
- the nut/os ones and the native system ones.

sometimes it works, but the problem starts when they get mixed up.

example: in thread.c I tried to add #include <pthread.h> which
includes some other headers, which are taken also from nut/os
right now, I can't see the which one is causing trouble.

I guess my/the general problem is clear:
I shouldn't mix header files.

Any suggestions to solve this?

I guess I should remove all nut/os files that are available natively and
move all definitions that are needed to other files.

Other ideas?

thanks,
matthias ringwald




More information about the En-Nut-Discussion mailing list