Skip to contentSkip to conversation

int32_t undefined in mini-os/include/posix/dirent.h

DISCUSSION Ferenc Wagner 2 participants 4 messages Apr 29, 2009

lore
Share & tools
lore
#0 lore raw

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.
#1 lore raw
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_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

#2 lore raw
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_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.

Signature · 2 lines
Cheers,
Feri.
#3 lore raw
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_t int32_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.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