浏览代码

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>
Alexander Graf 13 年之前
父节点
当前提交
65074706b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      thunk.h

+ 1 - 1
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