diff --git a/libs/pbd/mountpoint.cc b/libs/pbd/mountpoint.cc index df128aaf62a..7a118cbc863 100644 --- a/libs/pbd/mountpoint.cc +++ b/libs/pbd/mountpoint.cc @@ -110,6 +110,10 @@ mountpoint (string path) #else // !HAVE_GETMNTENT +#ifdef __linux__ +#error "getmntent is supported on Linux. Is this a configuration error?" +#endif + #include #include #include diff --git a/libs/pbd/wscript b/libs/pbd/wscript index 33eaba7b9c6..da46f49cb03 100644 --- a/libs/pbd/wscript +++ b/libs/pbd/wscript @@ -122,7 +122,7 @@ def configure(conf): define_name='HAVE_POSIX_MEMALIGN', execute = False, mandatory=False) conf.check_cc( msg="Checking for function 'getmntent' in mntent.h", - fragment = "#include \n int main(void) { return (int)getmntent(0); }\n", + fragment = "#include \n int main(void) { getmntent(0); }\n", define_name='HAVE_GETMNTENT', execute = False, mandatory=False) conf.check_cc( msg="Checking for function 'localtime_r' in time.h",