linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.28k stars 1k forks source link

Remove duplicate include of <sys/mount.h> #953

Closed kraj closed 1 year ago

kraj commented 1 year ago

<sys/mount.h> is already included by lapi/mount.h.

This fixes build with glibc 2.36+

Signed-off-by: Khem Raj raj.khem@gmail.com

pevik commented 1 year ago

Well statx09.c does not include lapi/mount.h, therefore build fails: statx09.c:119:7: error: implicit declaration of function 'mount' [-Werror=implicit-function-declaration]. Also we prefer patches to our mailing list: https://lists.linux.it/listinfo/ltp (https://github.com/linux-test-project/ltp#developers-corner)