Author: arichardson
Date: Tue Jan 16 21:43:21 2018
New Revision: 328062
URL: https://svnweb.freebsd.org/changeset/base/328062

Log:
  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

Modified:
  head/lib/libnetbsd/util.h

Modified: head/lib/libnetbsd/util.h
==============================================================================
--- head/lib/libnetbsd/util.h   Tue Jan 16 20:35:54 2018        (r328061)
+++ head/lib/libnetbsd/util.h   Tue Jan 16 21:43:21 2018        (r328062)
@@ -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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to