default_pre_build &&
cd "$SOURCE_DIRECTORY" &&

patch -p1 < "$SPELL_DIRECTORY"/ntp-pthread-config.patch &&

autoreconf &&

patch -p0 <<EOT
--- ntpd/ntpd.c.orig	2015-03-14 14:10:57.520666886 +0100
+++ ntpd/ntpd.c	2015-03-14 15:25:22.182850928 +0100
@@ -105,6 +105,11 @@
 # include <grp.h>
 # include <pwd.h>
 #ifdef HAVE_LINUX_CAPABILITIES
+/* sys/capabilities.h unconditionally
+   faking linux/types.h header guard,
+   breaking sys/prctl.h witout regard,
+   fixed by early linux/types.h, really */
+# include <linux/types.h>
 # include <sys/capability.h>
 # include <sys/prctl.h>
 #endif /* HAVE_LINUX_CAPABILITIES */
EOT
