diff --git a/mozilla/include/xp_mcom.h b/mozilla/include/xp_mcom.h index 10c3ad8ced2..e3242739820 100644 --- a/mozilla/include/xp_mcom.h +++ b/mozilla/include/xp_mcom.h @@ -85,14 +85,16 @@ XP_END_PROTOS #endif -#if !defined(XP_WIN) && !defined(XP_OS2) && !(defined(__GLIBC__) && __GLIBC__ >= 2) +#if !defined(XP_WIN) && !defined(XP_OS2) && !(defined(__GLIBC__) && __GLIBC__ >= 2) && !defined(AIXV3) /* strdup is not an ANSI function */ XP_BEGIN_PROTOS extern char * strdup (const char * s); XP_END_PROTOS #endif +#ifndef QNX #include +#endif #define XP_STRDUP(s) strdup((s)) #define XP_MEMCPY(d, s, n) memcpy((d), (s), (n)) diff --git a/mozilla/include/xp_str.h b/mozilla/include/xp_str.h index 6eb24fcbf70..4932dbf16eb 100644 --- a/mozilla/include/xp_str.h +++ b/mozilla/include/xp_str.h @@ -62,7 +62,7 @@ #endif -#if !defined(XP_WIN) && !defined(XP_OS2) && !(defined(__GLIBC__) && __GLIBC__ >= 2) +#if !defined(XP_WIN) && !defined(XP_OS2) && !(defined(__GLIBC__) && __GLIBC__ >= 2) && !defined(AIXV3) /* strdup is not an ANSI function */ XP_BEGIN_PROTOS extern char * strdup (const char * s);