core: fix build on macOS (closes #1662)

This commit is contained in:
Sébastien Helleu 2021-06-16 09:15:36 +02:00
parent bfa0b4376c
commit 0b7e4977be
2 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,10 @@ Tests::
* core: add build on macOS in CI
Build::
* core: fix build on macOS (issue #1662)
[[v3.2]]
== Version 3.2 (2021-06-13)

View File

@ -26,6 +26,9 @@
/* for nftw() */
#define _XOPEN_SOURCE 700
#if defined(__APPLE__)
#define _DARWIN_C_SOURCE
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"