]> git.baikalelectronics.ru Git - kernel.git/commit
doc: fix the compile fix of txtimestamp.c
authorWillem de Bruijn <willemb@google.com>
Sat, 10 Jan 2015 17:08:18 +0000 (12:08 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 02:56:00 +0000 (21:56 -0500)
commitdb38ec14a463579c4781e8ddcf3fce3f17591628
tree29e92caa1048937991a3f4b4e3a82ee0f878bab1
parenta5aa69c72c94c0e390be8a5eb2da09ec7426f3b5
doc: fix the compile fix of txtimestamp.c

A fix to ipv6 structure definitions removed the now superfluous
definition of in6_pktinfo in this file.

But, use of the glibc definition requires defining _GNU_SOURCE
(see also https://sourceware.org/bugzilla/show_bug.cgi?id=6775).

Before this change, the following would fail for me:

  make
  make headers_install
  make M=Documentation/networking/timestamping

with

  Documentation/networking/timestamping/txtimestamp.c: In function '__recv_errmsg_cmsg':
  Documentation/networking/timestamping/txtimestamp.c:205:33: error: dereferencing pointer to incomplete type
  Documentation/networking/timestamping/txtimestamp.c:206:23: error: dereferencing pointer to incomplete type

After this patch compilation succeeded.

Fixes: 3a31a1eaa85c ("doc: fix the compile error of txtimestamp.c")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/timestamping/txtimestamp.c