diff options
Diffstat (limited to 'tstamping.h')
-rw-r--r-- | tstamping.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tstamping.h b/tstamping.h index 41df9aa..ccc642e 100644 --- a/tstamping.h +++ b/tstamping.h @@ -1,6 +1,15 @@ #ifndef TSTAMPING_H #define TSTAMPING_H +#include "config.h" + +#ifdef HAVE_HARDWARE_TIMESTAMPING extern int set_sockopt_hwtimestamp(int sock, const char *dev); +#else +static inline int set_sockopt_hwtimestamp(int sock, const char *dev) +{ + return -1; +} +#endif #endif /* TSTAMPING_H */ |