[Buildroot] [PATCH 4/4] systemd: uclibc now has posix_fallocate()

Shawn Landden shawn at churchofgit.com
Mon Dec 9 00:07:43 UTC 2013


uClibc commit 5643900913f64c00f1c29589145

Signed-off-by: Shawn Landden <shawn at churchofgit.com>
---
 package/systemd/systemd-uclibc-fix.patch | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/package/systemd/systemd-uclibc-fix.patch b/package/systemd/systemd-uclibc-fix.patch
index 9a20845..08a5d3d 100644
--- a/package/systemd/systemd-uclibc-fix.patch
+++ b/package/systemd/systemd-uclibc-fix.patch
@@ -39,21 +39,3 @@ Index: systemd-44/src/macro.h
  #define _printf_attr_(a,b) __attribute__ ((format (printf, a, b)))
  #define _sentinel_ __attribute__ ((sentinel))
  #define _noreturn_ __attribute__((noreturn))
-Index: systemd-44/src/journal/journal-file.c
-===================================================================
---- systemd-44.orig/src/journal/journal-file.c
-+++ systemd-44/src/journal/journal-file.c
-@@ -229,11 +229,13 @@
-                 }
-         }
- 
-+#ifndef __UCLIBC__
-         /* Note that the glibc fallocate() fallback is very
-            inefficient, hence we try to minimize the allocation area
-            as we can. */
-         if (posix_fallocate(f->fd, old_size, new_size - old_size) < 0)
-                 return -errno;
-+#endif
- 
-         if (fstat(f->fd, &f->last_stat) < 0)
-                 return -errno;
-- 
1.8.5.1



More information about the buildroot mailing list