From e9a7ddffb993faa1a763e0fc59cafd1c6651b35d Mon Sep 17 00:00:00 2001 From: "briano%netscape.com" Date: Thu, 13 May 1999 08:46:41 +0000 Subject: [PATCH] Fix for QNX, and any other platform that doesn't have memory.h. Thanks to fur@netscape.com for allowing this change. --- js/src/jsemit.c | 2 ++ js/src/jsopcode.c | 2 ++ js/src/jsscan.c | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/js/src/jsemit.c b/js/src/jsemit.c index e606ab89500f..3bff6f180d17 100644 --- a/js/src/jsemit.c +++ b/js/src/jsemit.c @@ -20,7 +20,9 @@ * JS bytecode generation. */ #include "jsstddef.h" +#ifdef HAVE_MEMORY_H #include +#endif #include #include "jstypes.h" #include "jsarena.h" /* Added by JSIFY */ diff --git a/js/src/jsopcode.c b/js/src/jsopcode.c index 3c8c9e247023..c164673407df 100644 --- a/js/src/jsopcode.c +++ b/js/src/jsopcode.c @@ -20,7 +20,9 @@ * JS bytecode descriptors, disassemblers, and decompilers. */ #include "jsstddef.h" +#ifdef HAVE_MEMORY_H #include +#endif #include #include #include diff --git a/js/src/jsscan.c b/js/src/jsscan.c index 46490ffc7f51..66028a254ded 100644 --- a/js/src/jsscan.c +++ b/js/src/jsscan.c @@ -24,9 +24,10 @@ #include #include #include +#ifdef HAVE_MEMORY_H #include +#endif #include - #include #include #include "jstypes.h"