]> 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:12:16 +0000 (13:12 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 28 Jun 2018 11:12:16 +0000 (13:12 +0200)
commitc1c2848b572ea7f92b7fa81dd5b1b9ef7c69b83b
treeb885115bbd5fe2ffb52bd44ef27c810106963195
parent86a0f56158bd9cbaf2d640e2e6c66539f4cbbcc1
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.
ChangeLog
time/bits/types/struct_timespec.h