*** ./src/sunlink.c.ORIG	Tue Jan 11 09:36:43 2011
--- ./src/sunlink.c	Tue Jan 11 09:54:59 2011
***************
*** 16,23 ****
--- 16,25 ----
  
  #if defined(__unix__)
  #include <sys/ioctl.h>
+ #ifndef _AIX51
  #include <stdint.h>
  #endif
+ #endif
  
  #ifdef HAVE_SYS_VFS_H
  #include <sys/vfs.h>
***************
*** 84,89 ****
--- 86,95 ----
  #if defined(__FreeBSD__) || defined(__OpenBSD__)
  typedef sig_t sighandler_t;
  #endif
+ #ifdef _AIX
+ /* Type of a signal handler.  */
+ typedef void (*sighandler_t) (int);
+ #endif
  
  static void sigint_handler(int signo)
  {
***************
*** 502,508 ****
  	return -1;
        }
  
! #if defined(__linux__)
      srm.buffer_size = fs_stats.f_bsize;
  #elif defined(__FreeBSD__) || defined(__APPLE__)
      srm.buffer_size = fs_stats.f_iosize;
--- 508,514 ----
  	return -1;
        }
  
! #if defined(__linux__) || defined(_AIX)
      srm.buffer_size = fs_stats.f_bsize;
  #elif defined(__FreeBSD__) || defined(__APPLE__)
      srm.buffer_size = fs_stats.f_iosize;
*** ./config.h.in.ORIG	Tue Jan 11 10:01:42 2011
--- ./config.h.in	Tue Jan 11 10:02:07 2011
***************
*** 1,5 ****
--- 1,9 ----
  /* config.h.in.  Generated from configure.in by autoheader.  */
  
+ #ifdef _AIX
+ #include <alloca.h>
+ #endif
+ 
  /* Define to 1 if you have the `chflags' function. */
  #undef HAVE_CHFLAGS
  
*** ./src/Makefile.in.ORIG	Thu Jan 30 23:56:59 2014
--- ./src/Makefile.in	Thu Jan 30 23:57:07 2014
***************
*** 153,159 ****
  AM_CPPFLAGS = -I../lib
  srm_SOURCES = error.c main.c random.c rename_unlink.c sunlink.c tree_walker.c srm.h impl.h
  srm_LDADD = ../lib/libsrm.a
! AM_CFLAGS = -Wall
  all: all-am
  
  .SUFFIXES:
--- 153,159 ----
  AM_CPPFLAGS = -I../lib
  srm_SOURCES = error.c main.c random.c rename_unlink.c sunlink.c tree_walker.c srm.h impl.h
  srm_LDADD = ../lib/libsrm.a
! AM_CFLAGS =
  all: all-am
  
  .SUFFIXES:
*** ./test/Makefile.in.ORIG	Fri Nov  7 22:01:02 2014
--- ./test/Makefile.in	Fri Nov  7 22:01:07 2014
***************
*** 149,155 ****
  top_builddir = @top_builddir@
  top_srcdir = @top_srcdir@
  AM_CPPFLAGS = -I../lib -I../src
! AM_CFLAGS = -Wall
  fill_test_SOURCES = ../src/fill.c fill_test.c
  all: all-am
  
--- 149,155 ----
  top_builddir = @top_builddir@
  top_srcdir = @top_srcdir@
  AM_CPPFLAGS = -I../lib -I../src
! AM_CFLAGS =
  fill_test_SOURCES = ../src/fill.c fill_test.c
  all: all-am
  
