mirror of https://github.com/xqemu/xqemu.git
linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts
On my PPC host, HOST_LONG_SIZE is not defined even after running configure. Use the normal C way of determining the long size instead. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
30d70e71b3
commit
65074706b9
2
thunk.h
2
thunk.h
|
@ -113,7 +113,7 @@ static inline int thunk_type_size(const argtype *type_ptr, int is_host)
|
||||||
defined(HOST_PARISC) || defined(HOST_SPARC64)
|
defined(HOST_PARISC) || defined(HOST_SPARC64)
|
||||||
return 4;
|
return 4;
|
||||||
#elif defined(HOST_PPC)
|
#elif defined(HOST_PPC)
|
||||||
return HOST_LONG_SIZE;
|
return sizeof(void *);
|
||||||
#else
|
#else
|
||||||
return 2;
|
return 2;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue