mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kdecore: include paths header if present on the system
fixes mount points detection on systems using musl libc Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
442ac9d3a4
commit
b6f77397c5
3 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,7 @@ check_include_files(sys/mntent.h HAVE_SYS_MNTENT_H) # solid,
|
|||
check_include_files("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H) # kio, kdecore
|
||||
check_include_files(unistd.h HAVE_UNISTD_H) # various
|
||||
check_include_files(stdint.h HAVE_STDINT_H) # various
|
||||
check_include_files(paths.h HAVE_PATHS_H) # kdecore
|
||||
|
||||
check_include_files(sys/time.h HAVE_SYS_TIME_H) # various
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#cmakedefine HAVE_LIMITS_H 1
|
||||
#cmakedefine HAVE_MNTENT_H 1
|
||||
#cmakedefine HAVE_UNISTD_H 1
|
||||
#cmakedefine HAVE_PATHS_H 1
|
||||
|
||||
#cmakedefine HAVE_BACKTRACE 1
|
||||
#cmakedefine HAVE_GETMNTINFO 1
|
||||
|
|
|
@ -31,6 +31,10 @@
|
|||
|
||||
static Qt::CaseSensitivity cs = Qt::CaseSensitive;
|
||||
|
||||
#ifdef HAVE_PATHS_H
|
||||
#include <paths.h> // for _PATH_MOUNTED
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_MNTTAB_H
|
||||
#include <sys/mnttab.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue