]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
linux: Mimic kernel defition for BLOCK_SIZE
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 10 Aug 2022 17:24:45 +0000 (14:24 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 12 Aug 2022 12:15:21 +0000 (09:15 -0300)
To avoid possible warnings if the kernel header is included before
sys/mount.h.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/unix/sysv/linux/sys/mount.h

index f965986ba8771af5441ee83b618831873f504340..df6b0dbb425fbf2e441696ce680369c4448125ea 100644 (file)
@@ -27,8 +27,8 @@
 #include <stddef.h>
 #include <sys/ioctl.h>
 
-#define BLOCK_SIZE     1024
 #define BLOCK_SIZE_BITS        10
+#define BLOCK_SIZE     (1<<BLOCK_SIZE_BITS)
 
 
 /* These are the fs-independent mount-flags: up to 16 flags are