Csillag Tamas: > quoting from here: > https://lkml.org/lkml/2011/5/29/204 > > "So what are the big changes? > > NOTHING. Absolutely nothing. Sure, we have the usual two thirds driver > changes, and a lot of random fixes, but the point is that 3.0 is > *just* about renumbering..."
In that case, the following patch will be sufficient for all supported Postfix releases. Wietse [20110614-linux3-patch] diff -cr makedefs- makedefs *** makedefs- Tue Mar 1 14:14:18 2011 --- makedefs Tue Jun 14 19:31:23 2011 *************** *** 340,345 **** --- 340,372 ---- fi;; esac ;; + Linux.3*) SYSTYPE=LINUX3 + if [ -f /usr/include/db.h ] + then + : we are all set + elif [ -f /usr/include/db/db.h ] + then + CCARGS="$CCARGS -I/usr/include/db" + else + # On a properly installed system, Postfix builds + # by including <db.h> and by linking with -ldb + echo "No <db.h> include file found." 1>&2 + echo "Install the appropriate db*-devel package first." 1>&2 + echo "See the RELEASE_NOTES file for more information." 1>&2 + exit 1 + fi + SYSLIBS="-ldb" + for name in nsl resolv $GDBM_LIBS + do + for lib in /usr/lib64 /lib64 /usr/lib /lib + do + test -e $lib/lib$name.a -o -e $lib/lib$name.so && { + SYSLIBS="$SYSLIBS -l$name" + break + } + done + done + ;; GNU.0*|GNU/kFreeBSD.[567]*) SYSTYPE=GNU0 # Postfix no longer needs DB 1.85 compatibility diff -cr src/util/sys_defs.h- src/util/sys_defs.h *** src/util/sys_defs.h- Tue Mar 1 14:14:44 2011 --- src/util/sys_defs.h Tue Jun 14 19:37:12 2011 *************** *** 708,714 **** /* * LINUX. */ ! #ifdef LINUX2 #define SUPPORTED #include <sys/types.h> #define UINT32_TYPE unsigned int --- 708,714 ---- /* * LINUX. */ ! #if defined(LINUX2) || defined(LINUX3) #define SUPPORTED #include <sys/types.h> #define UINT32_TYPE unsigned int