eek, only be a ksh_nice if we HAVE_NICE
This commit is contained in:
		
							
								
								
									
										4
									
								
								jobs.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								jobs.c
									
									
									
									
									
								
							| @@ -22,7 +22,7 @@ | |||||||
|  |  | ||||||
| #include "sh.h" | #include "sh.h" | ||||||
|  |  | ||||||
| __RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.79 2011/07/16 17:41:50 tg Exp $"); | __RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.80 2011/07/16 23:37:58 tg Exp $"); | ||||||
|  |  | ||||||
| #if HAVE_KILLPG | #if HAVE_KILLPG | ||||||
| #define mksh_killpg		killpg | #define mksh_killpg		killpg | ||||||
| @@ -353,6 +353,7 @@ j_change(void) | |||||||
| } | } | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #if HAVE_NICE | ||||||
| /* run nice(3) and ignore the result */ | /* run nice(3) and ignore the result */ | ||||||
| static void | static void | ||||||
| ksh_nice(int ness) | ksh_nice(int ness) | ||||||
| @@ -368,6 +369,7 @@ ksh_nice(int ness) | |||||||
| 	(void)nice(ness); | 	(void)nice(ness); | ||||||
| #endif | #endif | ||||||
| } | } | ||||||
|  | #endif | ||||||
|  |  | ||||||
| /* execute tree in child subprocess */ | /* execute tree in child subprocess */ | ||||||
| int | int | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user