From aad1a39dfbdbb3cd2f9b1ba7f5c65fe68f179065 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Tue, 18 Nov 2014 12:21:55 +0100 Subject: [PATCH] libc: Fix headers to allow direct inclusion. These headers are missing a few #includes to allow their direct inclusion from C http://b.android.com/79841 Change-Id: Ifc712c17f4da70b26adb67d4d49ed659f53c3621 --- libc/include/android/dlext.h | 2 ++ libc/include/fts.h | 4 ++-- libc/include/sys/user.h | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libc/include/android/dlext.h b/libc/include/android/dlext.h index f27e4e5ab..90daf30eb 100644 --- a/libc/include/android/dlext.h +++ b/libc/include/android/dlext.h @@ -18,7 +18,9 @@ #define __ANDROID_DLEXT_H__ #include +#include #include +#include /* for off64_t */ __BEGIN_DECLS diff --git a/libc/include/fts.h b/libc/include/fts.h index da26a8823..cde0349ba 100644 --- a/libc/include/fts.h +++ b/libc/include/fts.h @@ -35,6 +35,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ @@ -111,8 +113,6 @@ typedef struct _ftsent { char fts_name[1]; /* file name */ } FTSENT; -#include - __BEGIN_DECLS FTSENT *fts_children(FTS *, int); int fts_close(FTS *); diff --git a/libc/include/sys/user.h b/libc/include/sys/user.h index 0e368250f..b370add7f 100644 --- a/libc/include/sys/user.h +++ b/libc/include/sys/user.h @@ -31,6 +31,7 @@ #include #include /* For PAGE_SIZE. */ +#include /* For size_t. */ __BEGIN_DECLS -- 2.11.0