diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-06-19 12:48:01 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-08-02 13:58:01 +0200 |
commit | 2c0888f69c247c82fc02ba207aa19fa00acf4b5e (patch) | |
tree | 9974a31dec090806a18c88c05b5fe6e56f04a137 /src/nxt_isolation.c | |
parent | 698680d8942feed023cdcfe85e9ca5b67261de2e (diff) | |
download | unit-2c0888f69c247c82fc02ba207aa19fa00acf4b5e.tar.gz unit-2c0888f69c247c82fc02ba207aa19fa00acf4b5e.tar.bz2 |
Including <mntent.h> iff it exists.
With NXT_HAVE_PIVOT_ROOT, we had issues in MacOS. Headers should
normally be included unconditionally, except of course if they
don't exist.
This fixes part of the #737 issue on GitHub.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_isolation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_isolation.c b/src/nxt_isolation.c index 7bb8dbfd..5a0714ff 100644 --- a/src/nxt_isolation.c +++ b/src/nxt_isolation.c @@ -7,7 +7,7 @@ #include <nxt_process.h> #include <nxt_isolation.h> -#if (NXT_HAVE_PIVOT_ROOT) +#if (NXT_HAVE_MNTENT_H) #include <mntent.h> #endif |