ports/devel/libexplain/files/patch-libexplain__buffer__errno__setpriority.c
Danilo Egea Gondolfo e3c3b5d6f2 - Update from 1.2 to 1.3 patch level D012
PR:		ports/184885
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-22 00:21:49 +00:00

18 lines
501 B
C

--- libexplain/buffer/errno/setpriority.c.orig
+++ libexplain/buffer/errno/setpriority.c
@@ -124,6 +124,7 @@
/* FIXME: i18n */
"the caller attempted to lower a process priority"
);
+#ifdef RLIMIT_NICE
if (explain_option_dialect_specific())
{
/*
@@ -141,6 +142,7 @@
explain_string_buffer_printf(sb, " (%d < %d)", prio, cur);
}
}
+#endif
explain_buffer_dac_sys_nice(sb);
break;