diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2012-04-04 16:46:59 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-04-05 13:15:22 +0200 |
commit | 1cba5cf918c3c5f08f52f9c27802b89dbdbbcf9d (patch) | |
tree | 93ccefa6e6142ad3ac13bfa8aa900ba84ccc8114 /package/systemd/systemd-uclibc-fix.patch | |
parent | 7a67da440db61b4f44d79c95c092efbf2d04d97d (diff) | |
download | buildroot-novena-1cba5cf918c3c5f08f52f9c27802b89dbdbbcf9d.tar.gz buildroot-novena-1cba5cf918c3c5f08f52f9c27802b89dbdbbcf9d.zip |
Bump systemd to version 44
[Peter: handle missing posix_fallocate in uClibc patch]
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/systemd/systemd-uclibc-fix.patch')
-rw-r--r-- | package/systemd/systemd-uclibc-fix.patch | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/package/systemd/systemd-uclibc-fix.patch b/package/systemd/systemd-uclibc-fix.patch index 24c32ab94..9a208450a 100644 --- a/package/systemd/systemd-uclibc-fix.patch +++ b/package/systemd/systemd-uclibc-fix.patch @@ -9,14 +9,15 @@ support to uClibc). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> --- - src/macro.h | 15 +++++++++++++++ - 1 file changed, 15 insertions(+) + src/journal/journal-file.c | 2 ++ + src/macro.h | 15 +++++++++++++++ + 2 files changed, 17 insertions(+) -Index: systemd-37/src/macro.h +Index: systemd-44/src/macro.h =================================================================== ---- systemd-37.orig/src/macro.h -+++ systemd-37/src/macro.h -@@ -27,6 +27,21 @@ +--- systemd-44.orig/src/macro.h ++++ systemd-44/src/macro.h +@@ -28,6 +28,21 @@ #include <sys/uio.h> #include <inttypes.h> @@ -38,3 +39,21 @@ Index: systemd-37/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; |