summaryrefslogtreecommitdiff
path: root/devel/libexplain/files/patch-libexplain__buffer__errno__setpriority.c
blob: df4c77cce5196cf52a3f6902174a7ea835e70ce2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- 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;