diff options
Diffstat (limited to 'tstamping.c')
-rw-r--r-- | tstamping.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tstamping.c b/tstamping.c index 7c97850..860b7a0 100644 --- a/tstamping.c +++ b/tstamping.c @@ -4,14 +4,12 @@ #include <sys/socket.h> #include <linux/sockios.h> #include <linux/net_tstamp.h> -#include <linux/net_tstamp.h> #include <linux/if_packet.h> #include <linux/if.h> #include "str.h" #include "tstamping.h" -#ifdef __WITH_HARDWARE_TIMESTAMPING int set_sockopt_hwtimestamp(int sock, const char *dev) { int timesource, ret; @@ -38,9 +36,3 @@ int set_sockopt_hwtimestamp(int sock, const char *dev) return setsockopt(sock, SOL_PACKET, PACKET_TIMESTAMP, ×ource, sizeof(timesource)); } -#else -int set_sockopt_hwtimestamp(int sock, const char *dev) -{ - return -1; -} -#endif |