diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-02-06 16:07:16 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-02-06 16:07:28 +0000 |
commit | c9cabf9aa6feb542776333fe5e915a3464f89e3c (patch) | |
tree | 58c56f19ce33b1bbddbcfe74037b1439db571b23 | |
parent | e17fede8ff4629b5ff640ed660940b04c70da0b6 (diff) | |
download | src-c9cabf9aa6feb542776333fe5e915a3464f89e3c.tar.gz src-c9cabf9aa6feb542776333fe5e915a3464f89e3c.zip |
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
-rw-r--r-- | tests/sys/fs/fusefs/setattr.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sys/fs/fusefs/setattr.cc b/tests/sys/fs/fusefs/setattr.cc index e4458db9f8ee..00b37ec7965a 100644 --- a/tests/sys/fs/fusefs/setattr.cc +++ b/tests/sys/fs/fusefs/setattr.cc @@ -34,6 +34,7 @@ extern "C" { #include <sys/stat.h> #include <fcntl.h> +#include <semaphore.h> } #include "mockfs.hh" |