mirror of
https://github.com/openharmony/third_party_e2fsprogs.git
synced 2026-07-01 22:54:14 -04:00
ca4d4f129c
Change-Id: Ia36c7caa4e1e1c4cbbfd0fbbac64b924788551b0 Signed-off-by: zhang-daiyue <zhangdaiyue1@huawei.com>
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
diff --git a/contrib/android/block_range.c b/contrib/android/block_range.c
|
|
index 0a068826c98c8ba3d5b490b9188202c261d4988b..5a45bca094c43b8fe9c1fb3817ae373c15b22387 100644
|
|
--- a/contrib/android/block_range.c
|
|
+++ b/contrib/android/block_range.c
|
|
@@ -1,4 +1,6 @@
|
|
+#ifndef _GNU_SOURCE
|
|
#define _GNU_SOURCE
|
|
+#endif
|
|
|
|
#include "block_range.h"
|
|
#include <stdio.h>
|
|
diff --git a/contrib/android/e2fsdroid.c b/contrib/android/e2fsdroid.c
|
|
index 1beb1e25bee8f1d4d33f1bf1b0e36064c567d544..622ad570f2eabc201e0e69cae4dc4ca86221dbd6 100644
|
|
--- a/contrib/android/e2fsdroid.c
|
|
+++ b/contrib/android/e2fsdroid.c
|
|
@@ -1,4 +1,6 @@
|
|
+#ifndef _GNU_SOURCE
|
|
#define _GNU_SOURCE
|
|
+#endif
|
|
|
|
#include "config.h"
|
|
#include <stdio.h>
|
|
diff --git a/contrib/android/perms.c b/contrib/android/perms.c
|
|
index 680d348e38e9374c2352dc66633132b95fe867fd..bfe06ca365682d4a508dd1634860a9abcf2c6c4b 100644
|
|
--- a/contrib/android/perms.c
|
|
+++ b/contrib/android/perms.c
|
|
@@ -4,6 +4,7 @@
|
|
#include "config.h"
|
|
#include "perms.h"
|
|
#include "support/nls-enable.h"
|
|
+#include <linux/capability.h>
|
|
#include <time.h>
|
|
#include <sys/stat.h>
|