Project

General

Profile

Backport #7470 ยป ruby-1.9.3-p327-solaris-siphash.c.patch

fix siphash.c endian code for Solaris - enchanter (Tim Mooney), 11/30/2012 07:56 AM

View differences:

ruby-1.9.3-p327/siphash.c 2012-11-29 14:43:55.086170896 -0600
#ifdef _WIN32
#define BYTE_ORDER __LITTLE_ENDIAN
#elif defined(__sun) && defined(__SVR4)
/* Solaris uses sys/byteorder.h and slightly different defines */
# define __LITTLE_ENDIAN 1234
# define __BIG_ENDIAN 4321
# include <sys/byteorder.h>
# ifdef _LITTLE_ENDIAN
# define BYTE_ORDER __LITTLE_ENDIAN
# elif _BIG_ENDIAN
# define BYTE_ORDER __BIG_ENDIAN
# endif
#elif !defined BYTE_ORDER
#include <endian.h>
#endif
    (1-1/1)