]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Explicitly include semaphore.h for struct _sem in fusefs setattr test
authorDimitry Andric <dim@FreeBSD.org>
Sun, 6 Feb 2022 16:07:16 +0000 (17:07 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 6 Feb 2022 16:07:28 +0000 (17:07 +0100)
commitc9cabf9aa6feb542776333fe5e915a3464f89e3c
tree58c56f19ce33b1bbddbcfe74037b1439db571b23
parente17fede8ff4629b5ff640ed660940b04c70da0b6
Explicitly include semaphore.h for struct _sem in fusefs setattr test

In libc++'s __threading_support header the semaphore.h header was
implicitly included, but from version 14 onwards, this is no longer the
case, resulting in compile errors:

tests/sys/fs/fusefs/setattr.cc:740:8: error: variable has incomplete type 'sem_t' (aka '_sem')
        sem_t sem;
              ^
tests/sys/fs/fusefs/utils.hh:33:8: note: forward declaration of '_sem'
struct _sem;
       ^

MFC after: 3 days
tests/sys/fs/fusefs/setattr.cc