SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
19
productivity/calcurse/patches/patch-src_args_c
Normal file
19
productivity/calcurse/patches/patch-src_args_c
Normal file
|
@ -0,0 +1,19 @@
|
|||
calcurse uses long for times all over the place; dirty fix for 32-bit
|
||||
arch with 64-bit time_t
|
||||
|
||||
Index: src/args.c
|
||||
--- src/args.c.orig
|
||||
+++ src/args.c
|
||||
@@ -251,10 +251,11 @@ static void next_arg(void)
|
||||
/*
|
||||
* Print the date on stdout.
|
||||
*/
|
||||
-static void arg_print_date(long date)
|
||||
+static void arg_print_date(long date_l)
|
||||
{
|
||||
char date_str[BUFSIZ];
|
||||
struct tm lt;
|
||||
+ time_t date = date_l;
|
||||
|
||||
localtime_r((time_t *) & date, <);
|
||||
strftime(date_str, BUFSIZ, conf.output_datefmt, <);
|
Loading…
Add table
Add a link
Reference in a new issue