From f5321a63efad6e031952e1821c00965a42036730 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sun, 12 Oct 2014 15:51:09 +0200 Subject: [PATCH hurd] startup: avoid broken puts --- startup/startup.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/startup/startup.c b/startup/startup.c index ff58270..e1f07a2 100644 --- a/startup/startup.c +++ b/startup/startup.c @@ -1663,3 +1663,10 @@ S_fsys_forward (mach_port_t server, mach_port_t requestor, { return EOPNOTSUPP; } + +/* XXX: puts is broken, it doesn't print the newline. */ +int +puts (const char *s) +{ + return printf ("%s%c", s, '\n') == 0? EOF: 1; +} -- 2.1.1