summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Gennis2012-06-13 18:40:54 -0500
committerJesse Hall2012-06-19 11:52:24 -0500
commit3be33e46187bfb1e42099bb4ba061a494356576c (patch)
treec98cfa51f4f167a22c3e72f1bb5ab293166df603 /libsync/sync.c
parent4d4cc9ecc74ca7df7453b73e8ed62ff36c658f09 (diff)
downloadplatform-system-core-3be33e46187bfb1e42099bb4ba061a494356576c.tar.gz
platform-system-core-3be33e46187bfb1e42099bb4ba061a494356576c.tar.xz
platform-system-core-3be33e46187bfb1e42099bb4ba061a494356576c.zip
libsync: remove linux includes from sync/sync.h
This change removes the #includes of "linux/*.h" headers from the libsync header. It currently does this by copying the needed structs that are in the linux headers. This is intended to be a temporary solution. Change-Id: Ie7e1a8e05fcf8809ba4aa0e2427efe141dae5327
Diffstat (limited to 'libsync/sync.c')
-rw-r--r--libsync/sync.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsync/sync.c b/libsync/sync.c
index 311da14cb..c20f15edc 100644
--- a/libsync/sync.c
+++ b/libsync/sync.c
@@ -20,12 +20,13 @@
20#include <stdint.h> 20#include <stdint.h>
21#include <string.h> 21#include <string.h>
22 22
23#include <linux/sync.h>
24#include <linux/sw_sync.h>
25
23#include <sys/ioctl.h> 26#include <sys/ioctl.h>
24#include <sys/stat.h> 27#include <sys/stat.h>
25#include <sys/types.h> 28#include <sys/types.h>
26 29
27#include <sync/sync.h>
28
29int sync_wait(int fd, unsigned int timeout) 30int sync_wait(int fd, unsigned int timeout)
30{ 31{
31 __u32 to = timeout; 32 __u32 to = timeout;