]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix the build on IBM i / PASE (#329)
authorYvan Janssens <friedkiwi@yvanj.me>
Sun, 13 Jan 2019 20:37:58 +0000 (20:37 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Jan 2019 20:37:58 +0000 (21:37 +0100)
configure.ac
src/lockfile.c
src/system.h

index b44a7213b7a3a48c17b007a1064296a419683d9f..761fbdd8df9af1b12dc3564eeea03ca10e5d3863 100644 (file)
@@ -14,6 +14,9 @@ case $host in
         windows_os=yes
         AC_DEFINE(_WIN32_WINNT,0x0600, Windows Vista or newer is required)
         ;;
+    *os400* | *aix*)
+        AR="ar -X64"
+        ;;
 esac
 
 AC_SUBST(disable_man)
index 9d1a49db2f3d499422d571853d9bed4e270ef0ff..b4e25c14bba2d7b1d86bbefe47c95864bc6f5cc9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2018 Joel Rosdahl
+// Copyright (C) 2010-2019 Joel Rosdahl
 //
 // This program is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by the Free
index 0de03da70a08a363fa5244533579fd25168219a4..623e8ec5df82ec81dda262f0d77ce63f3c0ee186 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2016 Joel Rosdahl
+// Copyright (C) 2010-2019 Joel Rosdahl
 //
 // This program is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by the Free
 #include <unistd.h>
 #include <utime.h>
 
+// AIX/PASE does not properly define usleep within its headers. However, the
+// function is available in libc.a. This extern define ensures that it is
+// usable within the ccache code base.
+#ifdef _AIX
+extern int usleep(useconds_t);
+#endif
+
 extern char **environ;
 
 #ifndef ESTALE