build-sys: uClibc does not have rpmatch()
Add simple replacement with hardcoded y/n responses to allow compilation on systems without rpmatch(). Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
		| @@ -1,5 +1,6 @@ | |||||||
| dist_noinst_HEADERS = \ | dist_noinst_HEADERS = \ | ||||||
| 	c.h \ | 	c.h \ | ||||||
| 	nls.h \ | 	nls.h \ | ||||||
|  | 	rpmatch.h \ | ||||||
| 	strutils.h \ | 	strutils.h \ | ||||||
| 	xalloc.h | 	xalloc.h | ||||||
|   | |||||||
							
								
								
									
										9
									
								
								include/rpmatch.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								include/rpmatch.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | #ifndef PROCPS_NG_RPMATCH_H | ||||||
|  | #define PROCPS_NG_RPMATCH_H | ||||||
|  |  | ||||||
|  | #ifndef HAVE_RPMATCH | ||||||
|  | #define rpmatch(r) \ | ||||||
|  | 	(*r == 'y' || *r == 'Y' ? 1 : *r == 'n' || *r == 'N' ? 0 : -1) | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | #endif /* PROCPS_NG_RPMATCH_H */ | ||||||
							
								
								
									
										1
									
								
								skill.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								skill.c
									
									
									
									
									
								
							| @@ -44,6 +44,7 @@ | |||||||
| #include "proc/devname.h" | #include "proc/devname.h" | ||||||
| #include "proc/procps.h"	/* char *user_from_uid(uid_t uid) */ | #include "proc/procps.h"	/* char *user_from_uid(uid_t uid) */ | ||||||
| #include "proc/version.h"	/* procps_version */ | #include "proc/version.h"	/* procps_version */ | ||||||
|  | #include "rpmatch.h" | ||||||
|  |  | ||||||
| #define DEFAULT_NICE 4 | #define DEFAULT_NICE 4 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user