build: Add support for AIX
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
diff --git a/configure.ac b/configure.ac
index 1df73de..bedc615 100644
--- a/configure.ac
+++ b/configure.ac
@@ -299,6 +299,52 @@ AS_CASE([$host_os],
abi_vis=yes
abi_wcsl=yes
],
+ [aix*], [
+ abi_accmode=yes
+ abi_arc4random=yes
+ abi_arc4random_stir=yes
+ abi_asprintf=yes
+ abi_bsd_getopt=yes
+ abi_closefrom=yes
+ abi_err=yes
+ abi_errc=yes
+ abi_expand_number=yes
+ abi_explicit_bzero=yes
+ abi_fgetln=yes
+ abi_flopen=yes
+ abi_fmtcheck=yes
+ abi_fpurge=no
+ abi_freezero=yes
+ abi_funopen=no
+ abi_getbsize=yes
+ abi_getpeereid=yes
+ abi_humanize_number=yes
+ abi_id_from_name=yes
+ abi_inet_net_pton=no
+ # On libmd.
+ abi_md5=no
+ abi_name_from_id=yes
+ abi_nlist=no
+ abi_pidfile=yes
+ abi_proctitle=yes
+ abi_progname=yes
+ abi_readpassphrase=yes
+ abi_reallocarray=yes
+ abi_reallocf=yes
+ abi_recallocarray=yes
+ abi_stringlist=yes
+ abi_sort=yes
+ abi_strl=yes
+ abi_strmode=yes
+ abi_strnstr=yes
+ abi_strtonum=yes
+ abi_strtox=yes
+ abi_timeconv=yes
+ # On libmd.
+ abi_transparent_libmd=no
+ abi_vis=yes
+ abi_wcsl=yes
+ ],
[mingw*], [
is_windows=yes
],
diff --git a/include/bsd/md5.h b/include/bsd/md5.h
index 5bd58d8..bfeecfd 100644
--- a/include/bsd/md5.h
+++ b/include/bsd/md5.h
@@ -24,8 +24,10 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _AIX
#ifdef LIBBSD_OVERLAY
#include_next <md5.h>
#else
#include <md5.h>
#endif
+#endif