diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2018-01-16 21:43:21 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2018-01-16 21:43:21 +0000 |
commit | 5c050bc4fc3c9da0614704dda8d51001c7a8b8e6 (patch) | |
tree | 39429bac5c4c74c4b70b8d8834369e9b1f49cc16 /lib/libnetbsd/util.h | |
parent | 981887b97039e468b50a78b103caf4734f5271d5 (diff) | |
download | src-5c050bc4fc3c9da0614704dda8d51001c7a8b8e6.tar.gz src-5c050bc4fc3c9da0614704dda8d51001c7a8b8e6.zip |
libnetbsd: Make the function declaration of efopen() match the definition
In order to crossbuild FreeBSD on Mac/Linux I also need to build libnetbsd
and FILE* is not equal to struct __sFILE on those platforms.
Reviewed By: brooks, emaste
Approved By: jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D13305
Notes
Notes:
svn path=/head/; revision=328062
Diffstat (limited to 'lib/libnetbsd/util.h')
-rw-r--r-- | lib/libnetbsd/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libnetbsd/util.h b/lib/libnetbsd/util.h index 3bd297c8aa36..47100fd45375 100644 --- a/lib/libnetbsd/util.h +++ b/lib/libnetbsd/util.h @@ -37,6 +37,7 @@ #include <sys/types.h> #include <libutil.h> +#include <stdio.h> void (*esetfunc(void (*)(int, const char *, ...)))(int, const char *, ...); size_t estrlcpy(char *, const char *, size_t); @@ -46,7 +47,7 @@ char *estrndup(const char *, size_t); void *emalloc(size_t); void *ecalloc(size_t, size_t); void *erealloc(void *, size_t); -struct __sFILE *efopen(const char *, const char *); +FILE *efopen(const char *, const char *); int easprintf(char ** __restrict, const char * __restrict, ...) __printflike(2, 3); int evasprintf(char ** __restrict, const char * __restrict, __va_list) |