summaryrefslogtreecommitdiffstats
path: root/patches/systemd-234/0006-missing-define-syncfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/systemd-234/0006-missing-define-syncfs.patch')
-rw-r--r--patches/systemd-234/0006-missing-define-syncfs.patch45
1 files changed, 0 insertions, 45 deletions
diff --git a/patches/systemd-234/0006-missing-define-syncfs.patch b/patches/systemd-234/0006-missing-define-syncfs.patch
deleted file mode 100644
index 6dc619eca..000000000
--- a/patches/systemd-234/0006-missing-define-syncfs.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-Date: Sat, 1 Aug 2015 21:36:38 +0200
-Subject: [PATCH] missing: define syncfs
-
-This is required for glibc < 2.14
-
-Upstream requires glibc 2.16 but this is useful for host-systemd.
-
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
----
- configure.ac | 1 +
- src/basic/missing.h | 8 ++++++++
- 2 files changed, 9 insertions(+)
-
-diff --git a/configure.ac b/configure.ac
-index c8fa808bc4d3..2101755d4e58 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -335,6 +335,7 @@ AC_CHECK_DECLS([
- pivot_root,
- name_to_handle_at,
- setns,
-+ syncfs,
- renameat2,
- kcmp,
- keyctl,
-diff --git a/src/basic/missing.h b/src/basic/missing.h
-index 8671c56140a6..fae5329663b2 100644
---- a/src/basic/missing.h
-+++ b/src/basic/missing.h
-@@ -965,6 +965,14 @@ struct input_mask {
- #define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */
- #endif
-
-+#if !HAVE_DECL_SYNCFS
-+static inline int syncfs(int fd)
-+{
-+ errno = ENOSYS;
-+ return -1;
-+}
-+#endif
-+
- #ifndef IPV6_UNICAST_IF
- #define IPV6_UNICAST_IF 76
- #endif