]> git.ipfire.org Git - thirdparty/glibc.git/commit
Use _STRUCT_TIMESPEC as guard in <bits/types/struct_timespec.h> [BZ #23349]
authorFlorian Weimer <fweimer@redhat.com>
Thu, 28 Jun 2018 11:22:34 +0000 (13:22 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 28 Jun 2018 11:22:34 +0000 (13:22 +0200)
commitf958b45d528390fb486cecd0b0615a1994e96795
tree30d35a7d663b60a0a28324ece6b6826b0b6a55e4
parent81b994bd8391e5994913d67b0966ce10cc0977a6
Use _STRUCT_TIMESPEC as guard in <bits/types/struct_timespec.h> [BZ #23349]

After commit d76d3703551a362b472c866b5b6089f66f8daa8e ("Fix missing
timespec definition for sys/stat.h (BZ #21371)") in combination with
kernel UAPI changes, GCC sanitizer builds start to fail due to a
conflicting definition of struct timespec in <linux/time.h>.  Use
_STRUCT_TIMESPEC as the header file inclusion guard, which is already
checked in the kernel header, to support including <linux/time.h> and
<sys/stat.h> in the same translation unit.

(cherry picked from commit c1c2848b572ea7f92b7fa81dd5b1b9ef7c69b83b)
ChangeLog
NEWS
time/bits/types/struct_timespec.h