Index: kernel/arch/sparc64/src/drivers/niagara.c
===================================================================
--- kernel/arch/sparc64/src/drivers/niagara.c	(revision 617652fa50b32207280104c49fe2bef5d68926fa)
+++ kernel/arch/sparc64/src/drivers/niagara.c	(revision 91001e26b14a5356ec8cf4cdeb642890b919a12d)
@@ -104,5 +104,5 @@
 static inline void do_putchar(const char c) {
 	/* repeat until the buffer is non-full */
-	while (__hypercall_fast1(CONS_PUTCHAR, c) == EWOULDBLOCK)
+	while (__hypercall_fast1(CONS_PUTCHAR, c) == HV_EWOULDBLOCK)
 		;
 }
@@ -139,5 +139,5 @@
 
 	/* read character from keyboard, send it to upper layers of HelenOS */
-	if (__hypercall_fast_ret1(0, 0, 0, 0, 0, CONS_GETCHAR, &c) == EOK) {
+	if (__hypercall_fast_ret1(0, 0, 0, 0, 0, CONS_GETCHAR, &c) == HV_EOK) {
 		if (!silent) {
 			/* kconsole active, send the character to kernel */
