ports/benchmarks/bonnie++/files/patch-getc_putc_helper.cpp
Ganael LAPLANCHE 765c4d803b benchmarks/bonnie++: Fix build on -CURRENT
While here, re-generate patches.
2023-07-10 12:31:18 +02:00

11 lines
420 B
C++

--- getc_putc_helper.cpp.orig 2009-07-03 02:26:05 UTC
+++ getc_putc_helper.cpp
@@ -45,7 +45,7 @@ int main(int argc, char *argv[])
return 1;
}
fflush(NULL);
- TEST_FUNC_READ("getc() no thread", if( (c = getc(fp)) == EOF), res[1]);
+ TEST_FUNC_READ("getc() no thread", int tmp = getc(fp); c = (char)tmp; if (tmp == EOF), res[1]);
if(fseek(fp, 0, SEEK_SET) != 0)
{
fprintf(stderr, "Can't seek.\n");