Created attachment 6572 [details] proposed fix MNT_NOWAIT is defined in sys/mount.h which was not being included
I've pushed a more generic fix to master 8096b1a9a4b1518467e7a85bb9000904a76c1ac4 This needs to be picked to v3-6-test. Björn please review.
8096b1a9a4b1518467e7a85bb9000904a76c1ac4 looks good. Karolin, please pick that to 3.6 to fix the FreeBSD.
Pushed to v3-6-test. Closing out bug report. Thanks!
Only problem with this fix is that sys/filesys.h does not exist on my freebsd system.
It's v3-6-test:lib/replace/system/filesys.h not <sys/filesys.h> from /usr/include. lib/replace/system/filesys.h should trigger the #include <sys/mount.h> if available.