summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/uclibc-sysinfo_h.patch
blob: 15645dee111da0c7a44616d54dedf008bac377df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Dont include sys/sysinfo.h on uclibc it conflicts with linux/sysinfo.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Inappropriate [uclibc specific]

Index: systemd-209/src/readahead/readahead-common.c
===================================================================
--- systemd-209.orig/src/readahead/readahead-common.c	2014-02-12 18:42:33.810685053 -0800
+++ systemd-209/src/readahead/readahead-common.c	2014-02-19 23:49:31.856661142 -0800
@@ -22,7 +22,9 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#ifndef __UCLIBC__
 #include <sys/sysinfo.h>
+#endif
 #include <sys/inotify.h>
 #include <fcntl.h>
 #include <sys/mman.h>