Skip to content

Commit d14fd02

Browse files
committed
compile with uclibc
1 parent de73128 commit d14fd02

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

totp.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SHRINKELF
88

99
COMPILE printf itodec memcpy bzero memset write sleep \
1010
select tcgetattr tcsetattr signal _execlp fmtp snprintf fmtl atol \
11-
localtime_r mktime execvp
11+
localtime_r mktime execvp sprintf
1212
COMPILE fmtp open error MLVALIST strncpy
1313

1414
if [ "$compile_sntp" = "1" ]; then
@@ -238,7 +238,13 @@ void dzen(int token, int nexttoken, int seconds, char **pexec){
238238
write(2,"Error (dzen2 not found)\n\n",25);
239239
} else {
240240
execvp( *pexec, pexec );
241-
eprintsl("Error, couldn't execute: ",*pexec);
241+
//eprintsl("Error, couldn't execute: ",*pexec);
242+
fprintf(stderr,"Error, couldn't execute: ");
243+
while (*pexec){
244+
fprintf( stderr, *pexec );
245+
*pexec++;
246+
}
247+
fprintf(stderr,"\n");
242248
}
243249
exit_erase(2000,1);
244250
}

0 commit comments

Comments
 (0)