diff -ruN rpmbuild-orig/SOURCES/postfix-2.6.6-makedefs-3.x-kernel.patch rpmbuild/SOURCES/postfix-2.6.6-makedefs-3.x-kernel.patch
--- rpmbuild-orig/SOURCES/postfix-2.6.6-makedefs-3.x-kernel.patch	1970-01-01 01:00:00.000000000 +0100
+++ rpmbuild/SOURCES/postfix-2.6.6-makedefs-3.x-kernel.patch	2016-02-01 00:56:04.858436078 +0100
@@ -0,0 +1,12 @@
+diff -ru postfix-2.6.6-orig/makedefs postfix-2.6.6/makedefs
+--- postfix-2.6.6-orig/makedefs	2009-10-19 02:30:12.000000000 +0200
++++ postfix-2.6.6/makedefs	2014-12-07 19:13:36.563287000 +0100
+@@ -254,7 +254,7 @@
+     Linux.1*)	SYSTYPE=LINUX1
+ 		SYSLIBS="-ldb"
+ 		;;
+-    Linux.2*)	SYSTYPE=LINUX2
++    Linux.2*|Linux.3*)	SYSTYPE=LINUX2
+ 		# Postfix no longer needs DB 1.85 compatibility
+ 		if [ -f /usr/include/db.h ]
+ 		then
diff -ruN rpmbuild-orig/SPECS/postfix.spec rpmbuild/SPECS/postfix.spec
--- rpmbuild-orig/SPECS/postfix.spec	2015-09-15 16:58:58.000000000 +0200
+++ rpmbuild/SPECS/postfix.spec	2016-02-01 00:57:25.163314834 +0100
@@ -35,7 +35,7 @@
 Name: postfix
 Summary: Postfix Mail Transport Agent
 Version: 2.6.6
-Release: 6%{?dist}.1
+Release: 6%{?dist}.1.0
 Epoch: 2
 Group: System Environment/Daemons
 URL: http://www.postfix.org
@@ -77,6 +77,7 @@
 Patch10: postfix-2.6.6-CVE-2011-0411.patch
 Patch11: postfix-2.6.6-CVE-2011-1720.patch
 Patch12: postfix-2.6.6-long-size-limits.patch
+Patch10000: postfix-2.6.6-makedefs-3.x-kernel.patch
 
 # Optional patches - set the appropriate environment variables to include
 #                    them when building the package/spec file
@@ -173,6 +174,8 @@
 		touch -r ${f}{,_} && mv -f ${f}{_,}
 done
 
+%patch10000 -p1
+
 %build
 CCARGS=-fPIC
 AUXLIBS=
@@ -495,6 +498,9 @@
 %endif
 
 %changelog
+* Sun Jan 31 2016 Jacco Ligthart <jacco@redsleeve.org> - 2:2.6.6-6.1.0
+- patched makedefs to reflect that this is build on a 3.x kernel
+
 * Tue Sep 15 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 2:2.6.6-6.1
 - Backported patch to use long integers for message_size_limit,
   mailbox_size_limit and virtual_mailbox_limit
