This commit is contained in:
Gonsolo 2025-11-30 00:38:45 +03:00 committed by GitHub
commit 25cceb77af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -110,6 +110,10 @@ mountpoint (string path)
#else // !HAVE_GETMNTENT #else // !HAVE_GETMNTENT
#ifdef __linux__
#error "getmntent is supported on Linux. Is this a configuration error?"
#endif
#include <sys/param.h> #include <sys/param.h>
#include <sys/ucred.h> #include <sys/ucred.h>
#include <sys/mount.h> #include <sys/mount.h>

View file

@ -114,7 +114,7 @@ def configure(conf):
define_name='HAVE_POSIX_MEMALIGN', execute = False, mandatory=False) define_name='HAVE_POSIX_MEMALIGN', execute = False, mandatory=False)
conf.check_cc( conf.check_cc(
msg="Checking for function 'getmntent' in mntent.h", msg="Checking for function 'getmntent' in mntent.h",
fragment = "#include <mntent.h>\n int main(void) { return (int)getmntent(0); }\n", fragment = "#include <mntent.h>\n int main(void) { getmntent(0); }\n",
define_name='HAVE_GETMNTENT', execute = False, mandatory=False) define_name='HAVE_GETMNTENT', execute = False, mandatory=False)
conf.check_cc( conf.check_cc(
msg="Checking for function 'localtime_r' in time.h", msg="Checking for function 'localtime_r' in time.h",