Newlib timeval error
Posted: Thu Apr 28, 2016 6:39 am
I am trying to port newlib to my OS. I added my OS to configuration files and I created a directory for it (I am following the tutorial from http://wiki.osdev.org/Porting_Newlib). Now when I try 'make all', I get following error:
There are other errors too, but I think the first one is the cause of all. Other errors could be found here: http://pastebin.com/Ju4jKCj2.
And my configuration files here: https://github.com/JustBeYou/Newlib-for ... ter/newlib
What could cause this error? I don't see anything wrong in headers.
Thanks.
Code: Select all
In file included from /home/littlewho/Desktop/sourcecode/photon/devel/src/newlib/newlib/libc/include/sys/time.h:42:0,
from ../../../../../newlib/newlib/libc/time/time.c:38:
/home/littlewho/Desktop/sourcecode/photon/devel/src/newlib/newlib/libc/include/sys/_timeval.h:51:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'
struct timeval {
And my configuration files here: https://github.com/JustBeYou/Newlib-for ... ter/newlib
What could cause this error? I don't see anything wrong in headers.
Thanks.