diff options
Diffstat (limited to 'lang/ossp-js/patches/patch-ai')
-rw-r--r-- | lang/ossp-js/patches/patch-ai | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/ossp-js/patches/patch-ai b/lang/ossp-js/patches/patch-ai new file mode 100644 index 00000000000..b0929b3ccdd --- /dev/null +++ b/lang/ossp-js/patches/patch-ai @@ -0,0 +1,19 @@ +$NetBSD: patch-ai,v 1.1 2008/04/04 01:56:16 bjs Exp $ + +--- src/jstypes.h.orig 2006-07-24 15:21:49.000000000 -0400 ++++ src/jstypes.h +@@ -387,8 +387,14 @@ typedef JSUint8 JSPackedBool; + /* + ** A JSWord is an integer that is the same size as a void* + */ ++#ifdef HAVE_INTTYPES_H ++#include <stdint.h> ++typedef intptr_t JSWord; ++typedef uintptr_t JSUword; ++#else + typedef long JSWord; + typedef unsigned long JSUword; ++#endif + + #include "jsotypes.h" + |