diff --git a/lib/roken/roken.h b/lib/roken/roken.h index b0cc68035..03345079e 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -41,6 +41,7 @@ #ifndef __ROKEN_H__ #define __ROKEN_H__ +#include #include #include #include @@ -160,6 +161,10 @@ int strnlen(char*, int); char *strsep(char**, const char*); #endif +#ifdef NEED_FCLOSE_PROTO +int fclose(FILE *); +#endif + #ifdef NEED_STRTOK_R_PROTO char *strtok_r(char *s1, const char *s2, char **lasts); #endif diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index b0cc68035..03345079e 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -41,6 +41,7 @@ #ifndef __ROKEN_H__ #define __ROKEN_H__ +#include #include #include #include @@ -160,6 +161,10 @@ int strnlen(char*, int); char *strsep(char**, const char*); #endif +#ifdef NEED_FCLOSE_PROTO +int fclose(FILE *); +#endif + #ifdef NEED_STRTOK_R_PROTO char *strtok_r(char *s1, const char *s2, char **lasts); #endif