diff options
| author | Jamie Gennis <jgennis@google.com> | 2012-06-13 16:40:54 -0700 |
|---|---|---|
| committer | Jesse Hall <jessehall@google.com> | 2012-06-19 09:52:24 -0700 |
| commit | 3be33e46187bfb1e42099bb4ba061a494356576c (patch) | |
| tree | c98cfa51f4f167a22c3e72f1bb5ab293166df603 /libsync | |
| parent | 4d4cc9ecc74ca7df7453b73e8ed62ff36c658f09 (diff) | |
| download | system_core-3be33e46187bfb1e42099bb4ba061a494356576c.zip system_core-3be33e46187bfb1e42099bb4ba061a494356576c.tar.gz system_core-3be33e46187bfb1e42099bb4ba061a494356576c.tar.bz2 | |
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')
| -rw-r--r-- | libsync/sync.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsync/sync.c b/libsync/sync.c index 311da14..c20f15e 100644 --- a/libsync/sync.c +++ b/libsync/sync.c @@ -20,12 +20,13 @@ #include <stdint.h> #include <string.h> +#include <linux/sync.h> +#include <linux/sw_sync.h> + #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/types.h> -#include <sync/sync.h> - int sync_wait(int fd, unsigned int timeout) { __u32 to = timeout; |
