*** ./git-compat-util.h.ORIG	Fri Jul 23 10:09:14 2010
--- ./git-compat-util.h	Fri Jul 23 10:16:06 2010
***************
*** 125,135 ****
  #include "compat/msvc.h"
  #endif
  
  #ifndef NO_LIBGEN_H
  #include <libgen.h>
  #else
! #define basename gitbasename
! extern char *gitbasename(char *);
  #endif
  
  #ifndef NO_ICONV
--- 125,138 ----
  #include "compat/msvc.h"
  #endif
  
+ #ifdef _AIX51
+ #define NO_LIBGEN_H
+ #endif
+ 
  #ifndef NO_LIBGEN_H
  #include <libgen.h>
  #else
! extern char *basename(char *);
  #endif
  
  #ifndef NO_ICONV
