S_IRWXU is declared in <sys/stat.h>. On FreeBSD 14 <semaphore.h> does
not include that header, so ovn-parallel-hmap.c fails to compile with
S_IRWXU undeclared. Include the header that POSIX documents for the
constant.
Fixes: 3d30952ceed6 ("ovn-libs: Add support for parallel processing")
Signed-off-by: Dmitrii Shcherbakov <[email protected]>
---
lib/ovn-parallel-hmap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/ovn-parallel-hmap.c b/lib/ovn-parallel-hmap.c
index 1b167e214..04b26a776 100644
--- a/lib/ovn-parallel-hmap.c
+++ b/lib/ovn-parallel-hmap.c
@@ -20,6 +20,7 @@
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <semaphore.h>
base-commit: 3cc2b5bcbd6087fff32d1dc76b1845ab166db31a
--
2.53.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev