From 5e8a34f0b43604b413f3eb75f45e85100cbc6cbb Mon Sep 17 00:00:00 2001 From: Jacob Keller Date: Tue, 27 May 2014 10:34:35 -0700 Subject: [PATCH] missing: add SIOCGHWTSTAMP to missing.h In order to allow hwtstamp_ctl to use the non-destructive SIOCGHWTSTAMP ioctl, we need to add it to missing.h, in order to prevent build failure on older kernels which don't have this support. Signed-off-by: Jacob Keller --- missing.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/missing.h b/missing.h index d6b2355..5f21fe5 100644 --- a/missing.h +++ b/missing.h @@ -50,6 +50,10 @@ enum _missing_hwtstamp_tx_types { }; #endif +#ifndef SIOCGHWTSTAMP +#define SIOCGHWTSTAMP 0x89b1 +#endif + #ifndef HAVE_CLOCK_ADJTIME static inline int clock_adjtime(clockid_t id, struct timex *tx) {