mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 200561: do not include <string.h> in optimized builds for AIX so that
memcpy continued to be exported. This is to be "bug compatible" with old libnspr4.so binaries that exported memcpy by accident because we did not include <string.h> in optimized builds.
This commit is contained in:
parent
5a4cbd5c11
commit
9bc8fdc32a
@ -34,7 +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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user