updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / delay / delay-1.6.patch
blob38622c0c74d27aabfa4d22d876fd9afeb084c96c
1 --- delay.c 2002-02-09 07:26:39.000000000 -0800
2 +++ delay.c 2008-03-04 03:07:07.835575808 -0800
3 @@ -17,6 +17,7 @@
4 */
6 #include <stdio.h>
7 +#include <stdlib.h>
8 #include <time.h>
9 #include <sys/time.h>
10 #include <unistd.h>
11 @@ -341,7 +342,7 @@
12 exit(-1);
15 - if (!strcmp(argv[optind], "until")) {
16 + if (!strcmp(argv[optind], "until") || !strcmp(argv[optind], "til")) {
17 dtime = parsetime(argc-optind, &argv[optind+1]);
18 if (!dtime) exit(-1);
19 dtime -= time(NULL);