OSDN Git Service

libc: Fix headers to allow direct inclusion.
authorDavid 'Digit' Turner <digit@google.com>
Tue, 18 Nov 2014 11:21:55 +0000 (12:21 +0100)
committerDavid 'Digit' Turner <digit@google.com>
Mon, 1 Dec 2014 14:44:24 +0000 (15:44 +0100)
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
libc/include/fts.h
libc/include/sys/user.h

index f27e4e5..90daf30 100644 (file)
@@ -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
 
index da26a88..cde0349 100644 (file)
@@ -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 *);
index 0e36825..b370add 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <sys/cdefs.h>
 #include <limits.h> /* For PAGE_SIZE. */
+#include <stddef.h> /* For size_t. */
 
 __BEGIN_DECLS