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?
Signature · 2 lines
Thanks, Feri.
Quoted 6 lines · 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_tint32_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
Quoted 11 lines · Samuel Thibault
Quoted 6 lines · 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_tint32_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.
Signature · 2 lines
Cheers, Feri.
Quoted 8 lines · Ferenc Wagner, le Wed 29 Apr 2009 15:05:22 +0200, a écrit :
Quoted 7 lines · Samuel Thibault
Quoted 5 lines · 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_tint32_t;
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
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.hat all. But I feel likedirent.hitself should include it,
Doesn't it?
You should probably really have a look at the unstable tree :)
Samuel