diff --git a/librb/src/crypt.c b/librb/src/crypt.c index b2e372401..daac4508a 100644 --- a/librb/src/crypt.c +++ b/librb/src/crypt.c @@ -777,6 +777,12 @@ static void MD5Final (unsigned char [16], MD5_CTX *); * a multiple of 4. */ +#ifdef _AIX +/* AIX lacks the endian.h header, so reimplement. AIX is always BE. */ +#define htole32(x) __builtin_bswap32(x) +#define le32toh(x) __builtin_bswap32(x) +#endif + static void Encode (unsigned char *output, uint32_t *input, unsigned int len) { diff --git a/librb/src/unix.c b/librb/src/unix.c index b2b8a89bd..6af77368a 100644 --- a/librb/src/unix.c +++ b/librb/src/unix.c @@ -45,7 +45,8 @@ #include #endif -#if defined(HAVE_SPAWN_H) && defined(HAVE_POSIX_SPAWN) +/* it dies violently in PASE due to posix_spawnattr_init calling the unimplemented */ +#if defined(HAVE_SPAWN_H) && defined(HAVE_POSIX_SPAWN) && !defined(_AIX) #include #ifndef __APPLE__