]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
It is just <fcntl.h>, don't use legacy (non-POSIX) path that is still supported
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 5 May 2022 11:39:35 +0000 (07:39 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 5 May 2022 11:39:35 +0000 (07:39 -0400)
by most Unix platforms, but not all.

(this also makes the code consistent with usage everywhere else in the CUPS
code base)

Fixes: 388
CHANGES.md
configure
tools/ippeveprinter.c

index 20743a577f5025402d89d0c72fc6b1fee6761184..b254bc57c5a15b5ec883e45652414466d7ff8f2e 100644 (file)
@@ -28,6 +28,7 @@ Changes in CUPS v2.4.2 (TBA)
 - Updated the configure script to look for the OpenSSL library the old way if
   pkg-config is not available (Issue #375)
 - Fixed the prototype for the `httpWriteResponse` function (Issue #380)
+- Brought back minimal AIX support (Issue #389)
 - `cupsGetResponse` did not always set the last error.
 - Fixed a number of old references to the Apple CUPS web page.
 - Restored the default/generic printer icon file for the web interface.
index 7934a827981f8ee1c6316ac79766123042278a0e..2e9c426bef356caecefbdcf8bf0b4cd321401e5b 100755 (executable)
--- a/configure
+++ b/configure
@@ -7720,6 +7720,20 @@ fi
        DSOXX="\$(CXX)"
        DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
      ;; #(
+  aix*) :
+
+       LIBCUPS="lib$cupsbase.so.2"
+       if test "x$cupsimagebase" != x
+then :
+
+           LIBCUPSIMAGE="lib$cupsimagebase.so.2"
+
+fi
+       DSO="\$(CC)"
+       DSOXX="\$(CXX)"
+       DSOFLAGS="$DSOFLAGS -Wl,-G -o \`basename \$@\`
+       LDFLAGS="$LDFLAGS $TLSFLAGS -liconv -lz -lm"
+     ;; #(
   *) :
 
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Warning: Shared libraries may not work, trying -shared option." >&5
index e3d43af67c57cd48b2f958b61a8f0b99d65a3cae..f819a6a8c283c304ab4b67504570009542194221 100644 (file)
 #endif /* !CUPS_LITE */
 
 #include <limits.h>
+#include <fcntl.h>
 #include <sys/stat.h>
 
 #ifdef _WIN32
-#  include <fcntl.h>
 #  include <io.h>
 #  include <process.h>
 #  define WEXITSTATUS(s) (s)
@@ -41,7 +41,6 @@ typedef ULONG nfds_t;
 extern char **environ;
 
 #  include <spawn.h>
-#  include <sys/fcntl.h>
 #  include <sys/wait.h>
 #  include <poll.h>
 #endif /* _WIN32 */