diff -uNr linuxptp-1.5/incdefs.sh patched/incdefs.sh
--- linuxptp-1.5/incdefs.sh	2014-12-23 03:37:36.000000000 -0800
+++ patched/incdefs.sh	2015-03-03 05:22:44.967696233 -0800
@@ -25,7 +25,9 @@
 {
 	# Needed for vasprintf().
 	printf " -D_GNU_SOURCE"
-
+	// hack to get it working on buildmachine
+	printf " -DHAVE_CLOCK_ADJTIME"
+	printf " -DHAVE_ONESTEP_SYNC"
 	# Get list of directories searched for header files.
 	dirs=$(echo "" | ${CROSS_COMPILE}cpp -Wp,-v 2>&1 >/dev/null | grep ^" /")
 
