rhboot / efivar

Tools and libraries to work with EFI variables
GNU Lesser General Public License v2.1
240 stars 105 forks source link

Fix glibc 2.36 build (mount.h conflicts) #228

Closed frozencemetery closed 2 years ago

frozencemetery commented 2 years ago

glibc has decided that sys/mount.h and linux/mount.h are no longer usable at the same time. This broke the build, since linux/fs.h itself includes linux/mount.h. For now, fix the build by only including sys/mount.h where we need it.

See-also: https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E Resolves: #227 Signed-off-by: Robbie Harwood rharwood@redhat.com