summaryrefslogtreecommitdiffstats
path: root/libc/include
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2014-11-18 12:21:55 +0100
committerDavid 'Digit' Turner <digit@google.com>2014-12-01 15:44:24 +0100
commitaad1a39dfbdbb3cd2f9b1ba7f5c65fe68f179065 (patch)
tree565e3947bbf06e4c8c2fb7797ab25f0468d36f03 /libc/include
parent7602628e972b90689b8f39e0c837cad28383bc2b (diff)
downloadbionic-aad1a39dfbdbb3cd2f9b1ba7f5c65fe68f179065.zip
bionic-aad1a39dfbdbb3cd2f9b1ba7f5c65fe68f179065.tar.gz
bionic-aad1a39dfbdbb3cd2f9b1ba7f5c65fe68f179065.tar.bz2
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
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/android/dlext.h2
-rw-r--r--libc/include/fts.h4
-rw-r--r--libc/include/sys/user.h1
3 files changed, 5 insertions, 2 deletions
diff --git a/libc/include/android/dlext.h b/libc/include/android/dlext.h
index f27e4e5..90daf30 100644
--- a/libc/include/android/dlext.h
+++ b/libc/include/android/dlext.h
@@ -18,7 +18,9 @@
#define __ANDROID_DLEXT_H__
#include <stddef.h>
+#include <stdint.h>
#include <sys/cdefs.h>
+#include <sys/types.h> /* for off64_t */
__BEGIN_DECLS
diff --git a/libc/include/fts.h b/libc/include/fts.h
index da26a88..cde0349 100644
--- a/libc/include/fts.h
+++ b/libc/include/fts.h
@@ -35,6 +35,8 @@
#ifndef _FTS_H_
#define _FTS_H_
+#include <sys/types.h>
+
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 <sys/cdefs.h>
-
__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 0e36825..b370add 100644
--- a/libc/include/sys/user.h
+++ b/libc/include/sys/user.h
@@ -31,6 +31,7 @@
#include <sys/cdefs.h>
#include <limits.h> /* For PAGE_SIZE. */
+#include <stddef.h> /* For size_t. */
__BEGIN_DECLS