AIX portability fixes. (Waqar Malik <waqar@netscape.com>)

This commit is contained in:
ramiro%netscape.com 1999-03-01 06:29:14 +00:00
parent 59e300a6f6
commit 1bf8790f66
12 changed files with 16 additions and 10 deletions

View File

@ -3085,7 +3085,7 @@ NET_WriteCacheFAT(char *filename, XP_Bool final_call)
{
#ifdef NU_CACHE
PR_ASSERT(0);
#endif;
#endif
net_StoreDiskCacheSize();
if(!cache_database)

View File

@ -78,7 +78,7 @@
#include <resolv.h>
#if !defined(__osf__) && !defined(AIXV3) && !defined(_HPUX_SOURCE) && !defined(__386BSD__) && !defined(__linux) && !defined(SCO_SV) && !defined(DGUX)
#if defined(HAVE_SYS_FILIO_H)
#include <sys/filio.h>
#endif

View File

@ -47,7 +47,7 @@ extern int XP_ERRNO_EWOULDBLOCK;
#include <resolv.h>
#if !defined(__osf__) && !defined(AIXV3) && !defined(_HPUX_SOURCE) && !defined(__386BSD__) && !defined(__linux) && !defined(SCO_SV) && !defined(DGUX)
#if defined(HAVE_SYS_FILIO_H)
#include <sys/filio.h>
#endif

View File

@ -78,7 +78,7 @@ void NET_NTrace(char *msg, int32 length) {
/* #define'd in mktrace.h to TRACEMSG */
void _MK_TraceMsg(char *fmt, ...) {
void ns_MK_TraceMsg(char *fmt, ...) {
va_list ap;
char buf[512];

View File

@ -36,10 +36,10 @@ extern PRLogModuleInfo* NETLIB;
PR_BEGIN_EXTERN_C
extern void NET_NTrace(char *msg, int32 length);
extern void _MK_TraceMsg(char *fmt, ...);
extern void ns_MK_TraceMsg(char *fmt, ...);
PR_END_EXTERN_C
#define TRACEMSG(msg) _MK_TraceMsg msg
#define TRACEMSG(msg) ns_MK_TraceMsg msg
#else
#define TRACEMSG(msg)
#endif /* DEBUG || NETLIB_TRACE_ON */

View File

@ -65,7 +65,7 @@
#endif /* XP_OS2 */
#ifdef XP_UNIX
#if !defined(__osf__) && !defined(AIXV3) && !defined(_HPUX_SOURCE) && !defined(__386BSD__) && !defined(__linux) && !defined(SCO_SV) && !defined(DGUX)
#if defined(HAVE_SYS_FILIO_H)
#include <sys/filio.h>
#endif
#endif /* XP_UNIX */

View File

@ -272,7 +272,7 @@
#endif
#endif
#if defined(IRIX)
#if defined(IRIX) || defined(AIX)
#define NSCAP_NO_MEMBER_USING_DECLARATIONS
#define NSCAP_NO_EXPLICIT
#define NSCAP_NO_NEW_CASTS

View File

@ -57,6 +57,8 @@
}
#endif // TEMP_MAC_HACK
//------------------------
#elif defined(XP_UNIX)
#include<stdlib.h>
#endif

View File

@ -272,7 +272,7 @@
#endif
#endif
#if defined(IRIX)
#if defined(IRIX) || defined(AIX)
#define NSCAP_NO_MEMBER_USING_DECLARATIONS
#define NSCAP_NO_EXPLICIT
#define NSCAP_NO_NEW_CASTS

View File

@ -57,6 +57,8 @@
}
#endif // TEMP_MAC_HACK
//------------------------
#elif defined(XP_UNIX)
#include<stdlib.h>
#endif

View File

@ -272,7 +272,7 @@
#endif
#endif
#if defined(IRIX)
#if defined(IRIX) || defined(AIX)
#define NSCAP_NO_MEMBER_USING_DECLARATIONS
#define NSCAP_NO_EXPLICIT
#define NSCAP_NO_NEW_CASTS

View File

@ -57,6 +57,8 @@
}
#endif // TEMP_MAC_HACK
//------------------------
#elif defined(XP_UNIX)
#include<stdlib.h>
#endif