postfix: fix build with kernel 4.9 headers

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2017-02-12 19:48:53 +01:00
parent a58a2e67ec
commit 24247159dd
2 changed files with 13 additions and 0 deletions

View File

@@ -102,6 +102,7 @@ $(subst %,%_MD5,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-build_with_kernel4x.patch
cd $(DIR_APP) && make -f Makefile.init makefiles \
DEBUG="" OPT="$(CFLAGS) -fno-strict-aliasing" CCARGS="$(CCARGS)" AUXLIBS="$(AUXLIBS)"
cd $(DIR_APP) && make $(MAKETUNING)

View File

@@ -0,0 +1,12 @@
diff -Naur postfix-2.10.0.org/makedefs postfix-2.10.0/makedefs
--- postfix-2.10.0.org/makedefs 2013-02-04 02:33:13.000000000 +0100
+++ postfix-2.10.0/makedefs 2017-02-08 10:10:56.713314716 +0100
@@ -347,7 +347,7 @@
fi;;
esac
;;
- Linux.3*) SYSTYPE=LINUX3
+ Linux.[34]*) SYSTYPE=LINUX3
case "$CCARGS" in
*-DNO_DB*) ;;
*) if [ -f /usr/include/db.h ]