diff --git a/compiler/libpc300/libpawnc.c b/compiler/libpc300/libpawnc.c index 9bd98846..cd4d496d 100755 --- a/compiler/libpc300/libpawnc.c +++ b/compiler/libpc300/libpawnc.c @@ -56,6 +56,10 @@ } #endif /* PAWNC_DLL */ +#if defined LINUX || defined __FreeBSD__ || defined __OpenBSD__ || defined __APPLE__ + #include + #include +#endif /* pc_printf() * Called for general purpose "console" output. This function prints general @@ -175,6 +179,7 @@ void *pc_opensrc(char *filename) src->pos = src->buffer; src->end = src->buffer + length; + fclose(fp); return src; err: