[Linuxptp-devel] [PATCH 1/2] missing: add SIOCGHWTSTAMP to missing.h
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: Jacob K. <jac...@in...> - 2014-05-27 17:34:55
|
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 <jac...@in...>
---
missing.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/missing.h b/missing.h
index d6b2355cb8fb..5f21fe58d069 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)
{
--
1.9.0
|