HomeFreeBSD

Explicitly include semaphore.h for struct _sem in fusefs setattr test

Description

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

Details

Provenance
dimAuthored on Feb 6 2022, 4:07 PM
Parents
rGe17fede8ff46: Fix too small sscanf output buffers in kbdmap
Branches
Unknown
Tags
Unknown