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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user