$NetBSD: patch-aj,v 1.1 2007/08/12 03:04:34 wiz Exp $ --- jstypes.h.orig 2005-09-18 00:35:05.000000000 -0400 +++ jstypes.h @@ -387,8 +387,14 @@ typedef JSUint8 JSPackedBool; /* ** A JSWord is an integer that is the same size as a void* */ +#ifndef HAVE_INTTYPES_H typedef long JSWord; typedef unsigned long JSUword; +#else +#include +typedef intptr_t JSWord; +typedef uintptr_t JSUword; +#endif /* HAVE_INTTYPES_H */ #include "jsotypes.h"