mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 08:02:26 +01:00
36 lines
988 B
Diff
36 lines
988 B
Diff
diff --git a/lib/ext2fs/ext4_acl.h b/lib/ext2fs/ext4_acl.h
|
|
index 8d4d974..297df1b 100644
|
|
--- a/lib/ext2fs/ext4_acl.h
|
|
+++ b/lib/ext2fs/ext4_acl.h
|
|
@@ -1,3 +1,11 @@
|
|
+#ifndef __GNUC_PREREQ
|
|
+# if defined __GNUC__ && defined __GNUC_MINOR__
|
|
+# define __GNUC_PREREQ(maj, min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
|
|
+# else
|
|
+# define __GNUC_PREREQ(maj, min) 0
|
|
+# endif
|
|
+#endif
|
|
+
|
|
/*
|
|
* Ext4's on-disk acl format. From linux/fs/ext4/acl.h
|
|
*/
|
|
diff --git a/lib/ext2fs/hashmap.h b/lib/ext2fs/hashmap.h
|
|
index 228f439..fdc8e7f 100644
|
|
--- a/lib/ext2fs/hashmap.h
|
|
+++ b/lib/ext2fs/hashmap.h
|
|
@@ -4,6 +4,14 @@
|
|
# include <stdlib.h>
|
|
# include <stdint.h>
|
|
|
|
+#ifndef __GNUC_PREREQ
|
|
+# if defined __GNUC__ && defined __GNUC_MINOR__
|
|
+# define __GNUC_PREREQ(maj, min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
|
|
+# else
|
|
+# define __GNUC_PREREQ(maj, min) 0
|
|
+# endif
|
|
+#endif
|
|
+
|
|
struct ext2fs_hashmap {
|
|
uint32_t size;
|
|
uint32_t(*hash)(const void *key, size_t len);
|