diff options
Diffstat (limited to 'io')
-rw-r--r-- | io/fts.h | 6 | ||||
-rw-r--r-- | io/mknod.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/io/fts.h b/io/fts.h index 84dbe14bc7..643a027c2c 100644 --- a/io/fts.h +++ b/io/fts.h @@ -36,6 +36,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include <sys/cdefs.h> + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ @@ -45,7 +47,7 @@ typedef struct { int fts_rfd; /* fd for root */ int fts_pathlen; /* sizeof(path) */ int fts_nitems; /* elements in the sort array */ - int (*fts_compar)(); /* compare function */ + int (*fts_compar) __P((const void *, const void *)); /* compare fn */ #define FTS_COMFOLLOW 0x001 /* follow command line symlinks */ #define FTS_LOGICAL 0x002 /* logical walk */ @@ -111,8 +113,6 @@ typedef struct _ftsent { char fts_name[1]; /* file name */ } FTSENT; -#include <sys/cdefs.h> - __BEGIN_DECLS FTSENT *fts_children __P((FTS *, int)); int fts_close __P((FTS *)); diff --git a/io/mknod.c b/io/mknod.c index b41582cae3..95ebe5a6d2 100644 --- a/io/mknod.c +++ b/io/mknod.c @@ -16,6 +16,7 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <sys/types.h> #include <sys/stat.h> /* This definition is only used if inlining fails for this function; see |