Permalink
Browse files

Add missing prototype for fallback mkostemp()

Fixes #976
  • Loading branch information...
krader1961 committed Oct 26, 2018
1 parent 3b4313f commit f85990193bfc14bb88924511ec2d93ad78d536c3
Showing with 8 additions and 4 deletions.
  1. +8 −4 config_ast.h.in
@@ -233,11 +233,15 @@ extern void ast_free(void *ptr);
#define valloc(s) valloc_has_no_ast_wrapper(s)
#endif // !NO_MALLOC_WRAPPERS
extern char *sh_getenv(const char *name);
#define getenv(x) sh_getenv(x)
// We need prototypes for each fallback implementation if the system doesn't
// provide the function.
#if !_lib_eaccess
// We need a prototype for the fallback implementation.
int eaccess(const char *pathname, int mode);
#endif
extern char *sh_getenv(const char *name);
#define getenv(x) sh_getenv(x)
#if !_lib_mkostemp
int mkostemp(char *template, int oflags);
#endif
#endif

0 comments on commit f859901

Please sign in to comment.