diff options
author | Ed Schouten <ed@FreeBSD.org> | 2013-05-21 21:20:10 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2013-05-21 21:20:10 +0000 |
commit | 6ed0f50f78d984e43073613e7b1d787239d1e23e (patch) | |
tree | d428e4aacc64240d1c710711b4bb8a97093ec296 /include | |
parent | bed927ee176fa2abf867d9e634a937dbb94170f3 (diff) | |
download | src-6ed0f50f78d984e43073613e7b1d787239d1e23e.tar.gz src-6ed0f50f78d984e43073613e7b1d787239d1e23e.zip |
Allow certain headers to be included more easily.
Spotted by: http://hacks.owlfolio.org/header-survey/
Notes
Notes:
svn path=/head/; revision=250887
Diffstat (limited to 'include')
-rw-r--r-- | include/arpa/tftp.h | 2 | ||||
-rw-r--r-- | include/fts.h | 18 | ||||
-rw-r--r-- | include/ifaddrs.h | 2 |
3 files changed, 13 insertions, 9 deletions
diff --git a/include/arpa/tftp.h b/include/arpa/tftp.h index 5c2a4c7eeadc..20733ec69e1a 100644 --- a/include/arpa/tftp.h +++ b/include/arpa/tftp.h @@ -33,6 +33,8 @@ #ifndef _ARPA_TFTP_H_ #define _ARPA_TFTP_H_ +#include <sys/cdefs.h> + /* * Trivial File Transfer Protocol (IEN-133) */ diff --git a/include/fts.h b/include/fts.h index a679ea6876ab..f453e2b86526 100644 --- a/include/fts.h +++ b/include/fts.h @@ -33,15 +33,17 @@ #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 */ struct _ftsent **fts_array; /* sort array */ - dev_t fts_dev; /* starting device # */ + __dev_t fts_dev; /* starting device # */ char *fts_path; /* path for this descent */ int fts_rfd; /* fd for root */ - size_t fts_pathlen; /* sizeof(path) */ - size_t fts_nitems; /* elements in the sort array */ + __size_t fts_pathlen; /* sizeof(path) */ + __size_t fts_nitems; /* elements in the sort array */ int (*fts_compar) /* compare function */ (const struct _ftsent * const *, const struct _ftsent * const *); @@ -72,12 +74,12 @@ typedef struct _ftsent { char *fts_path; /* root path */ int fts_errno; /* errno for this node */ int fts_symfd; /* fd for symlink */ - size_t fts_pathlen; /* strlen(fts_path) */ - size_t fts_namelen; /* strlen(fts_name) */ + __size_t fts_pathlen; /* strlen(fts_path) */ + __size_t fts_namelen; /* strlen(fts_name) */ - ino_t fts_ino; /* inode */ - dev_t fts_dev; /* device */ - nlink_t fts_nlink; /* link count */ + __ino_t fts_ino; /* inode */ + __dev_t fts_dev; /* device */ + __nlink_t fts_nlink; /* link count */ #define FTS_ROOTPARENTLEVEL -1 #define FTS_ROOTLEVEL 0 diff --git a/include/ifaddrs.h b/include/ifaddrs.h index f0911a48f3ef..e768d50cfa42 100644 --- a/include/ifaddrs.h +++ b/include/ifaddrs.h @@ -31,7 +31,7 @@ struct ifaddrs { struct ifaddrs *ifa_next; char *ifa_name; - u_int ifa_flags; + unsigned int ifa_flags; struct sockaddr *ifa_addr; struct sockaddr *ifa_netmask; struct sockaddr *ifa_dstaddr; |