Closed Bug 487765 Opened 14 years ago Closed 14 years ago
qcms failed to compile on Solaris
There are 2 problems. 1) LITTLE_ENDIAN/BIG_ENDIAN is not defined 2) int_types.h defines uintptr_t as unsigned int, but prtypes.h defines PRUptrdiff as unsinged long. so typedef PRUptrdiff uintptr_t is an error. int8_t is similar, PRInt8 is signed char, but int_types.h defines int8_t as char.
I saw we have 487566, 487754. I think we should fix them all together. For problem 1) (include prtypes.h) #ifdef IS_LITTLE_ENDIAN #define LITTLE_ENDIAN #endif #ifdef IS_BIG_ENDIAN #define BIG_ENDIAN #endif For problem 2) If the system has <inttypes.h> or <stdint.h> why would we redefine them from PR* ?
Does this patch fix it?
I changed your patch a bit to make it work.
Comment on attachment 372555 [details] [diff] [review] patch Looks good to me.
Attachment #372555 - Flags: review?(jmuizelaar) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.