From 3efe640aa516e322aa869b8e2a3881c6d63fee37 Mon Sep 17 00:00:00 2001
From: Brian Olson <brian@amergint.com>
Date: Thu, 15 Jun 2017 11:14:19 -0400
Subject: [PATCH 1/2] added workaround for clock_adjtime() leaving 0 for ticks on 2.6.32 kernel.

---
 clockadj.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/clockadj.c b/clockadj.c
index 5eb7cce..86c7b33 100644
--- a/clockadj.c
+++ b/clockadj.c
@@ -73,7 +73,7 @@ double clockadj_get_freq(clockid_t clkid)
 		pr_err("failed to read out the clock frequency adjustment: %m");
 	} else {
 		f = tx.freq / 65.536;
-		if (clkid == CLOCK_REALTIME && realtime_nominal_tick)
+		if (clkid == CLOCK_REALTIME && realtime_nominal_tick && tx.tick)
 			f += 1e3 * realtime_hz * (tx.tick - realtime_nominal_tick);
 	}
 	return f;
-- 
1.7.1


From 81fd8e5b182f6257295576617204bd93d69e7683 Mon Sep 17 00:00:00 2001
From: Brian Olson <brian@amergint.com>
Date: Thu, 15 Jun 2017 12:00:56 -0400
Subject: [PATCH 2/2] =?UTF-8?q?fixed=20error:=20=E2=80=98struct=20sockaddr=5Fnl=E2=80=99=20has=20no=20member=20named=20=E2=80=98nl=5Ffamily=E2=80=99
=20building=20on=20RHEL=206.6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 rtnl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/rtnl.c b/rtnl.c
index 251b5f3..1266731 100644
--- a/rtnl.c
+++ b/rtnl.c
@@ -17,6 +17,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 #include <asm/types.h>
+#include <sys/socket.h>
 #include <linux/netlink.h>
 #include <linux/rtnetlink.h>
 #include <net/if.h>
-- 
1.7.1

