Ferenc Wagner
2009-Apr-29 10:21 UTC
[Xen-devel] int32_t undefined in mini-os/include/posix/dirent.h
Hi, Trying to compile grub2''s grub-emu as a Xen-3.3.1 stubdom, I got an error which could be fixed by adding typedef __int32_t int32_t; to mini-os/include/posix/dirent.h. It probably isn''t the right fix, but what''s the right fix then? Is it maybe fixed in the development branch? -- Thanks, Feri. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Samuel Thibault
2009-Apr-29 11:54 UTC
Re: [Xen-devel] int32_t undefined in mini-os/include/posix/dirent.h
Ferenc Wagner, le Wed 29 Apr 2009 12:21:40 +0200, a écrit :> Trying to compile grub2''s grub-emu as a Xen-3.3.1 stubdom, I got an > error which could be fixed by adding > > typedef __int32_t int32_t; > > to mini-os/include/posix/dirent.h. It probably isn''t the right fix,Indeed :) It should be already defined in newlib''s stdint.h, does grub2 properly include that? Samuel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ferenc Wagner
2009-Apr-29 13:05 UTC
[Xen-devel] Re: int32_t undefined in mini-os/include/posix/dirent.h
Samuel Thibault <samuel.thibault@ens-lyon.org> writes:> Ferenc Wagner, le Wed 29 Apr 2009 12:21:40 +0200, a écrit : > >> Trying to compile grub2''s grub-emu as a Xen-3.3.1 stubdom, I got an >> error which could be fixed by adding >> >> typedef __int32_t int32_t; >> >> to mini-os/include/posix/dirent.h. It probably isn''t the right fix, > > It should be already defined in newlib''s stdint.h, does grub2 properly > include that?No, it does not include stdint.h at all. But I feel like dirent.h itself should include it, if it uses types from that, just like it includes sys/types.h. Even the libc readdir(3) manual doesn''t mention including anything but dirent.h. -- Cheers, Feri. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Samuel Thibault
2009-Apr-29 15:09 UTC
[Xen-devel] Re: int32_t undefined in mini-os/include/posix/dirent.h
Ferenc Wagner, le Wed 29 Apr 2009 15:05:22 +0200, a écrit :> Samuel Thibault <samuel.thibault@ens-lyon.org> writes: > > Ferenc Wagner, le Wed 29 Apr 2009 12:21:40 +0200, a écrit : > > > >> Trying to compile grub2''s grub-emu as a Xen-3.3.1 stubdom, I got an > >> error which could be fixed by adding > >> > >> typedef __int32_t int32_t; > >> > >> to mini-os/include/posix/dirent.h. It probably isn''t the right fix, > > > > It should be already defined in newlib''s stdint.h, does grub2 properly > > include that? > > No, it does not include stdint.h at all. But I feel like dirent.h > itself should include it,Doesn''t it? You should probably really have a look at the unstable tree :) Samuel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel