1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/lang/picoc/files/patch-cstdlib__stdio.c
Baptiste Daroussin 54eaefebf1 Add forgotten patches
Reported by: (pointyhat) Pav
2011-03-11 07:11:26 +00:00

12 lines
505 B
C

--- ./cstdlib/stdio.c.orig 2011-02-21 06:22:13.000000000 +0100
+++ ./cstdlib/stdio.c 2011-03-11 08:08:19.710970864 +0100
@@ -414,7 +414,7 @@
void StdioFileno(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
{
- ReturnValue->Val->Integer = fileno(Param[0]->Val->Pointer);
+ ReturnValue->Val->Integer = fileno((FILE *)Param[0]->Val->Pointer);
}
void StdioFflush(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)