jobextra/postfix/linux6.patch
2022-11-15 17:45:12 +02:00

38 lines
1.2 KiB
Diff

From b65530350fa4a7eee40946160fd80c3e1e0b63e5 Mon Sep 17 00:00:00 2001
From: Wietse Venema <wietse@porcupine.org>
Date: Thu, 6 Oct 2022 00:00:00 -0500
Subject: [PATCH] postfix-3.8-20221006
---
postfix/makedefs | 3 ++-
postfix/src/util/sys_defs.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/postfix/makedefs b/postfix/makedefs
index 2839f3a8..9e061b37 100644
--- a/postfix/makedefs
+++ b/postfix/makedefs
@@ -627,7 +627,8 @@ EOF
: ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
: ${PLUGIN_LD="${CC-gcc} -shared"}
;;
- Linux.[345].*) SYSTYPE=LINUX$RELEASE_MAJOR
+ Linux.[3456].*)
+ SYSTYPE=LINUX$RELEASE_MAJOR
case "$CCARGS" in
*-DNO_DB*) ;;
*-DHAS_DB*) ;;
diff --git a/postfix/src/util/sys_defs.h b/postfix/src/util/sys_defs.h
index c9ebc337..37e460f9 100644
--- a/postfix/src/util/sys_defs.h
+++ b/postfix/src/util/sys_defs.h
@@ -751,7 +751,8 @@ extern int initgroups(const char *, int);
/*
* LINUX.
*/
-#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5)
+#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5) \
+ || defined(LINUX6)
#define SUPPORTED
#define UINT32_TYPE unsigned int
#define UINT16_TYPE unsigned short