diff -urN mozilla-orig/nsprpub/pr/include/md/_linux.cfg mozilla/nsprpub/pr/include/md/_linux.cfg --- mozilla-orig/nsprpub/pr/include/md/_linux.cfg 2005-08-08 22:41:43.580366464 -0500 +++ mozilla/nsprpub/pr/include/md/_linux.cfg 2005-08-08 22:48:30.385522680 -0500 @@ -45,7 +45,53 @@ #define PR_AF_INET6 10 /* same as AF_INET6 */ -#ifdef __powerpc__ +#ifdef __powerpc64__ + +#undef IS_LITTLE_ENDIAN +#define IS_BIG_ENDIAN 1 +#define IS_64 + +#define PR_BYTES_PER_BYTE 1 +#define PR_BYTES_PER_SHORT 2 +#define PR_BYTES_PER_INT 4 +#define PR_BYTES_PER_INT64 8 +#define PR_BYTES_PER_LONG 8 +#define PR_BYTES_PER_FLOAT 4 +#define PR_BYTES_PER_DOUBLE 8 +#define PR_BYTES_PER_WORD 8 +#define PR_BYTES_PER_DWORD 8 + +#define PR_BITS_PER_BYTE 8 +#define PR_BITS_PER_SHORT 16 +#define PR_BITS_PER_INT 32 +#define PR_BITS_PER_INT64 64 +#define PR_BITS_PER_LONG 64 +#define PR_BITS_PER_FLOAT 32 +#define PR_BITS_PER_DOUBLE 64 +#define PR_BITS_PER_WORD 64 + +#define PR_BITS_PER_BYTE_LOG2 3 +#define PR_BITS_PER_SHORT_LOG2 4 +#define PR_BITS_PER_INT_LOG2 5 +#define PR_BITS_PER_INT64_LOG2 6 +#define PR_BITS_PER_LONG_LOG2 6 +#define PR_BITS_PER_FLOAT_LOG2 5 +#define PR_BITS_PER_DOUBLE_LOG2 6 +#define PR_BITS_PER_WORD_LOG2 6 + +#define PR_ALIGN_OF_SHORT 2 +#define PR_ALIGN_OF_INT 4 +#define PR_ALIGN_OF_LONG 8 +#define PR_ALIGN_OF_INT64 8 +#define PR_ALIGN_OF_FLOAT 4 +#define PR_ALIGN_OF_DOUBLE 8 +#define PR_ALIGN_OF_POINTER 8 +#define PR_ALIGN_OF_WORD 8 + +#define PR_BYTES_PER_WORD_LOG2 3 +#define PR_BYTES_PER_DWORD_LOG2 3 + +#elif defined(__powerpc__) #undef IS_LITTLE_ENDIAN #define IS_BIG_ENDIAN 1 diff -urN mozilla-orig/nsprpub/pr/include/md/_linux.h mozilla/nsprpub/pr/include/md/_linux.h --- mozilla-orig/nsprpub/pr/include/md/_linux.h 2005-08-08 22:41:43.580366464 -0500 +++ mozilla/nsprpub/pr/include/md/_linux.h 2005-08-08 22:47:43.252687960 -0500 @@ -43,7 +43,9 @@ #define PR_LINKER_ARCH "linux" #define _PR_SI_SYSNAME "LINUX" -#ifdef __powerpc__ +#ifdef __powerpc64__ +#define _PR_SI_ARCHITECTURE "ppc64" +#elif defined(__powerpc__) #define _PR_SI_ARCHITECTURE "ppc" #elif defined(__alpha) #define _PR_SI_ARCHITECTURE "alpha" diff -urN mozilla-orig/security/coreconf/Linux.mk mozilla/security/coreconf/Linux.mk --- mozilla-orig/security/coreconf/Linux.mk 2005-08-08 22:41:54.986632448 -0500 +++ mozilla/security/coreconf/Linux.mk 2005-08-08 23:10:49.039016416 -0500 @@ -53,7 +53,11 @@ ifeq ($(OS_TEST),m68k) OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE CPU_ARCH = m68k -else +else +ifeq ($(OS_TEST),ppc64) + OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE + CPU_ARCH = ppc64 +else ifeq ($(OS_TEST),ppc) OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE CPU_ARCH = ppc @@ -117,6 +121,7 @@ endif endif endif +endif LIBC_TAG = _glibc @@ -138,7 +143,7 @@ OS_PTHREAD = -lpthread endif -OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR +OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR OS_LIBS = -L/lib $(OS_PTHREAD) -ldl -lc ifdef USE_PTHREADS