summaryrefslogtreecommitdiff
path: root/debian/patches/startup-avoid-broken-puts.patch
blob: 76aae649253978672d76816fb3d97d629dd2048b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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