*** ./testsuite/orcc/orc_test.c.ORIG	Tue Apr 26 23:08:05 2011
--- ./testsuite/orcc/orc_test.c	Tue Apr 26 23:08:17 2011
***************
*** 5,11 ****
--- 5,13 ----
  #include <string.h>
  #include <stdlib.h>
  #include <math.h>
+ #ifndef _AIX51
  #include <stdint.h>
+ #endif
  
  #ifndef _ORC_INTEGER_TYPEDEFS_
  #define _ORC_INTEGER_TYPEDEFS_
*** ./testsuite/orcc/testorc.c.ORIG	Tue Apr 26 23:08:25 2011
--- ./testsuite/orcc/testorc.c	Tue Apr 26 23:08:36 2011
***************
*** 4,10 ****
--- 4,12 ----
  #ifdef HAVE_CONFIG_H
  #include "config.h"
  #endif
+ #ifndef _AIX51
  #include <stdint.h>
+ #endif
  
  #ifndef _ORC_INTEGER_TYPEDEFS_
  #define _ORC_INTEGER_TYPEDEFS_
*** ./configure.ORIG	Tue Apr 26 23:06:32 2011
--- ./configure	Tue Apr 26 23:07:20 2011
***************
*** 12355,12361 ****
  $as_echo "#define HAVE_CODEMEM_VIRTUALALLOC 1" >>confdefs.h
  
      ;;
!   linux*|darwin*|solaris*|netbsd*|freebsd*|openbsd*|kfreebsd*|dragonfly*|gnu*)
  
  $as_echo "#define HAVE_CODEMEM_MMAP 1" >>confdefs.h
  
--- 12355,12361 ----
  $as_echo "#define HAVE_CODEMEM_VIRTUALALLOC 1" >>confdefs.h
  
      ;;
!   aix*|linux*|darwin*|solaris*|netbsd*|freebsd*|openbsd*|kfreebsd*|dragonfly*|gnu*)
  
  $as_echo "#define HAVE_CODEMEM_MMAP 1" >>confdefs.h
  
*** ./configure.ac.ORIG	Tue Apr 26 23:07:36 2011
--- ./configure.ac	Tue Apr 26 23:07:51 2011
***************
*** 97,103 ****
    mingw*|pw32*|cygwin*)
      AC_DEFINE(HAVE_CODEMEM_VIRTUALALLOC, 1, [Use VirtualAlloc to allocate code for execution])
      ;;
!   linux*|darwin*|solaris*|netbsd*|freebsd*|openbsd*|kfreebsd*|dragonfly*|gnu*)
      AC_DEFINE(HAVE_CODEMEM_MMAP, 1, [Use mmap to allocate code for execution])
      ;;
    *)
--- 97,103 ----
    mingw*|pw32*|cygwin*)
      AC_DEFINE(HAVE_CODEMEM_VIRTUALALLOC, 1, [Use VirtualAlloc to allocate code for execution])
      ;;
!   aix*|linux*|darwin*|solaris*|netbsd*|freebsd*|openbsd*|kfreebsd*|dragonfly*|gnu*)
      AC_DEFINE(HAVE_CODEMEM_MMAP, 1, [Use mmap to allocate code for execution])
      ;;
    *)
