diff options
Diffstat (limited to 'debian/patches/startup-avoid-broken-puts.patch')
-rw-r--r-- | debian/patches/startup-avoid-broken-puts.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/startup-avoid-broken-puts.patch b/debian/patches/startup-avoid-broken-puts.patch new file mode 100644 index 00000000..76aae649 --- /dev/null +++ b/debian/patches/startup-avoid-broken-puts.patch @@ -0,0 +1,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 + |