diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-14 01:20:46 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-16 01:33:35 +0700 |
commit | a4bfd836ee442671d4ce17e8535cba47a3bde66f (patch) | |
tree | bc36600ed4dc173937aeed7cc15f0d35f98f2ecc /network/wmget | |
parent | 28187edffbc34b6b928303a72c6f77c5a2004358 (diff) |
network/wmget: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/wmget')
-rw-r--r-- | network/wmget/da_run.patch | 14 | ||||
-rw-r--r-- | network/wmget/wmget.SlackBuild | 6 |
2 files changed, 16 insertions, 4 deletions
diff --git a/network/wmget/da_run.patch b/network/wmget/da_run.patch new file mode 100644 index 000000000000..a4faa2540ed9 --- /dev/null +++ b/network/wmget/da_run.patch @@ -0,0 +1,14 @@ +--- wmget/dockapp/da_run.c.orig 2016-02-14 00:57:46.773867780 +0700 ++++ wmget/dockapp/da_run.c 2016-02-14 01:18:46.455679579 +0700 +@@ -157,10 +157,8 @@ + static long da_timer_msec_remaining (void) + { + struct timeval right_now; +- int rv; ++ gettimeofday(&right_now, NULL); + +- rv = gettimeofday (&right_now, 0); +- + return + (da_timer_next_timeout.tv_sec - right_now.tv_sec) * 1000L + + (da_timer_next_timeout.tv_usec - right_now.tv_usec) / 1000L; diff --git a/network/wmget/wmget.SlackBuild b/network/wmget/wmget.SlackBuild index b34b71f61782..e648d951a4ae 100644 --- a/network/wmget/wmget.SlackBuild +++ b/network/wmget/wmget.SlackBuild @@ -69,10 +69,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Patch to fix! -cp $CWD/wmget.patch ./ -patch -p0 < wmget.patch - +patch -p1 < $CWD/da_run.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ make |