1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
Upstream-Status: Inappropriate [uclibc specific]
From 7be9273548bcb1f57d011fc252965e45dd2a058c Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 21 Aug 2013 19:09:27 -0700
Subject: [PATCH] uClibc doesn't implement pwritev/preadv
Lets stub out the testcase for building.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/libsystemd-bus/test-bus-memfd.c | 2 ++
1 file changed, 2 insertions(+)
Index: systemd-209/src/libsystemd/sd-bus/test-bus-memfd.c
===================================================================
--- systemd-209.orig/src/libsystemd/sd-bus/test-bus-memfd.c 2014-02-19 15:03:09.983254602 -0800
+++ systemd-209/src/libsystemd/sd-bus/test-bus-memfd.c 2014-02-19 23:42:10.636652864 -0800
@@ -151,6 +151,7 @@
/* check content */
assert_se(memcmp(buf, "ll", 2) == 0);
+#ifndef __UCLIBC__
/* writev it out*/
iov[0].iov_base = (char *)"ABC";
iov[0].iov_len = 3;
@@ -173,6 +174,7 @@
assert_se(memcmp(bufv[0], "ABC", 3) == 0);
assert_se(memcmp(bufv[1], "DEF", 3) == 0);
assert_se(memcmp(bufv[2], "GHI", 3) == 0);
+#endif /* __UCLIBC__ */
sd_memfd_free(m);
|