mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-10 21:01:49 +00:00
parent
f2df40f58b
commit
ac8d030855
@ -1 +1 @@
|
||||
270978954f87ac494b04c2cc1c15c23102f07406
|
||||
f0518e32e26d8286b84789e661c4999e01d8b569
|
||||
|
@ -212,13 +212,6 @@ extern "C" void *malloc(size_t size)
|
||||
}
|
||||
|
||||
|
||||
extern "C" void setbuf(FILE *stream, char *buf)
|
||||
{
|
||||
if (buf)
|
||||
Genode::error("setbuf(", (void*)buf, "): not implemented");
|
||||
}
|
||||
|
||||
|
||||
extern "C" char *strcpy(char *dest, const char *src)
|
||||
{
|
||||
return Genode::strncpy(dest, src, Genode::strlen(src) + 1);
|
||||
|
23
repos/libports/src/lib/gcov/patches/setbuf.patch
Normal file
23
repos/libports/src/lib/gcov/patches/setbuf.patch
Normal file
@ -0,0 +1,23 @@
|
||||
open files in buffered mode
|
||||
|
||||
From: Christian Prochaska <christian.prochaska@genode-labs.com>
|
||||
|
||||
|
||||
---
|
||||
gcc/gcov-io.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/gcc/gcov-io.c b/gcc/gcov-io.c
|
||||
index 17fcae0..269196a 100644
|
||||
--- a/gcc/gcov-io.c
|
||||
+++ b/gcc/gcov-io.c
|
||||
@@ -217,7 +217,9 @@ gcov_open (const char *name, int mode)
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
+#if 0
|
||||
setbuf (gcov_var.file, (char *)0);
|
||||
+#endif
|
||||
|
||||
return 1;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user