Skip to content

Commit cd91cc5

Browse files
congwangdavem330
authored andcommitted
doc: fix the compile error of txtimestamp.c
Vinson reported: HOSTCC Documentation/networking/timestamping/txtimestamp Documentation/networking/timestamping/txtimestamp.c:64:8: error: redefinition of ‘struct in6_pktinfo’ struct in6_pktinfo { ^ In file included from /usr/include/arpa/inet.h:23:0, from Documentation/networking/timestamping/txtimestamp.c:33: /usr/include/netinet/in.h:456:8: note: originally defined here struct in6_pktinfo ^ After we sync with libc header, we don't need this ugly hack any more. Reported-by: Vinson Lee <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3b50d90 commit cd91cc5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Documentation/networking/timestamping/txtimestamp.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@
5959
#include <time.h>
6060
#include <unistd.h>
6161

62-
/* ugly hack to work around netinet/in.h and linux/ipv6.h conflicts */
63-
#ifndef in6_pktinfo
64-
struct in6_pktinfo {
65-
struct in6_addr ipi6_addr;
66-
int ipi6_ifindex;
67-
};
68-
#endif
69-
7062
/* command line parameters */
7163
static int cfg_proto = SOCK_STREAM;
7264
static int cfg_ipproto = IPPROTO_TCP;

0 commit comments

Comments
 (0)