]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:replace: Remove <sys/mount.h> from filesys.h
authorAndreas Schneider <asn@samba.org>
Fri, 29 Jul 2022 08:08:24 +0000 (10:08 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 29 Jul 2022 13:08:36 +0000 (13:08 +0000)
You need to be careful if you include <sys/mount.h> or <linux/mount.h>
at least since glibc 2.36.

Details at:
https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15132

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Jul 29 13:08:36 UTC 2022 on sn-devel-184

lib/replace/system/filesys.h

index 034e5d5886cb8e1300ad968337383348f5dde1cb..190c6b90f933fcbe040f130441a23a70c60038f6 100644 (file)
 #include <sys/param.h>
 #endif
 
-#ifdef HAVE_SYS_MOUNT_H
-#include <sys/mount.h>
-#endif
-
 #ifdef HAVE_MNTENT_H
 #include <mntent.h>
 #endif