opnsense-ports/devel/libexplain/files/patch-libexplain__buffer__errno__setpriority.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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;