diff options
Diffstat (limited to 'pr/src/misc/prrng.c')
-rw-r--r-- | pr/src/misc/prrng.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pr/src/misc/prrng.c b/pr/src/misc/prrng.c index bc6c0cd8..480b347d 100644 --- a/pr/src/misc/prrng.c +++ b/pr/src/misc/prrng.c @@ -34,6 +34,16 @@ #include "primpl.h" +/* + * We were not including <string.h> in optimized builds. On AIX this + * caused libnspr4.so to export memcpy and some binaries linked with + * libnspr4.so resolved their memcpy references with libnspr4.so. To + * be backward compatible with old libnspr4.so binaries, we do not + * include <string.h> in optimized builds for AIX. (bug 200561) + */ +#if !(defined(AIX) && !defined(DEBUG)) +#include <string.h> +#endif PRSize _pr_CopyLowBits( void *dst, |