1 diff --git a/lib/ext2fs/ext4_acl.h b/lib/ext2fs/ext4_acl.h
2 index 8d4d974..297df1b 100644
3 --- a/lib/ext2fs/ext4_acl.h
4 +++ b/lib/ext2fs/ext4_acl.h
7 +# if defined __GNUC__ && defined __GNUC_MINOR__
8 +# define __GNUC_PREREQ(maj, min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
10 +# define __GNUC_PREREQ(maj, min) 0
15 * Ext4's on-disk acl format. From linux/fs/ext4/acl.h
17 diff --git a/lib/ext2fs/hashmap.h b/lib/ext2fs/hashmap.h
18 index 228f439..fdc8e7f 100644
19 --- a/lib/ext2fs/hashmap.h
20 +++ b/lib/ext2fs/hashmap.h
25 +#ifndef __GNUC_PREREQ
26 +# if defined __GNUC__ && defined __GNUC_MINOR__
27 +# define __GNUC_PREREQ(maj, min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
29 +# define __GNUC_PREREQ(maj, min) 0
33 struct ext2fs_hashmap {
35 uint32_t(*hash)(const void *key, size_t len);