give up, GNU libc will never be compatible with UNIX libc
This commit is contained in:
17
ps/global.c
17
ps/global.c
@ -351,9 +351,6 @@ void reset_global(void){
|
||||
|
||||
/*********** spew variables ***********/
|
||||
void self_info(void){
|
||||
#ifndef EMULATE_FPUTS
|
||||
int count;
|
||||
#endif
|
||||
fprintf(stderr,
|
||||
"BSD j %s\n"
|
||||
"BSD l %s\n"
|
||||
@ -387,20 +384,6 @@ void self_info(void){
|
||||
__GNU_LIBRARY__, __GLIBC__, __GLIBC_MINOR__
|
||||
);
|
||||
|
||||
#ifdef EMULATE_FPUTS
|
||||
fprintf(stderr, "libc assumed lame, using fprintf to emulate fputs.\n\n");
|
||||
#else
|
||||
fprintf(stderr, "fputs(\"");
|
||||
count = fputs("123456789", stderr);
|
||||
fprintf(stderr, "\", stderr) gives %d, which is %s.\n",
|
||||
count, count==9?"good":"BAD!\nAdjust ps/common.h or libc, then recompile"
|
||||
);
|
||||
if(count!=9){
|
||||
fprintf(stderr, "(procps includes a libc patch called glibc.patch)\n");
|
||||
}
|
||||
fprintf(stderr, "\n");
|
||||
#endif
|
||||
|
||||
fprintf(stderr,
|
||||
"header_gap=%d lines_to_next_header=%d\n"
|
||||
"screen_cols=%d screen_rows=%d\n"
|
||||
|
Reference in New Issue
Block a user