diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
commit | 24fd814c326e282c4321965c31f341dad77e270d (patch) | |
tree | 033d63b33c21a3209964ab56005bb9bdd523630d /net-misc/aget/files | |
parent | 129160ec854dca4c3fedb5bcfbcb56930371da0f (diff) |
gentoo resync : 08.01.2021
Diffstat (limited to 'net-misc/aget/files')
-rw-r--r-- | net-misc/aget/files/aget-0.4.1-fno-common.patch | 66 | ||||
-rw-r--r-- | net-misc/aget/files/aget-0.4.1-overflow.patch (renamed from net-misc/aget/files/aget-0.4.1-r1.patch) | 4 |
2 files changed, 68 insertions, 2 deletions
diff --git a/net-misc/aget/files/aget-0.4.1-fno-common.patch b/net-misc/aget/files/aget-0.4.1-fno-common.patch new file mode 100644 index 000000000000..e881cc39b88b --- /dev/null +++ b/net-misc/aget/files/aget-0.4.1-fno-common.patch @@ -0,0 +1,66 @@ +--- a/Aget.c ++++ b/Aget.c +@@ -33,6 +33,8 @@ extern pthread_t hthread; + #include <errno.h> + extern int errno; + ++extern time_t t_start, t_finish; ++ + + void get(struct request *req) + { +--- a/Head.c ++++ b/Head.c +@@ -34,6 +34,8 @@ + extern int errno; + extern int h_errno; + ++time_t t_start, t_finish; ++ + #ifdef SOLARIS + extern const char *hstrerror(int); + #endif +--- a/Misc.h ++++ b/Misc.h +@@ -24,7 +24,7 @@ void Log(char *, ...); /* Log */ + void updateProgressBar(float, float); + void handleHttpRetcode(char *); + +-time_t t_start, t_finish; ++extern time_t t_start, t_finish; + + #endif + +--- a/Signal.c ++++ b/Signal.c +@@ -16,6 +16,8 @@ extern struct request *req; + extern int bwritten; + extern pthread_mutex_t bwritten_mutex; + ++sigset_t signal_set; ++ + void * signal_waiter(void *arg) + { + int signal; +--- a/Signal.h ++++ b/Signal.h +@@ -4,7 +4,7 @@ + #include <signal.h> + #include <pthread.h> + +-sigset_t signal_set; ++extern sigset_t signal_set; + + void * signal_waiter(void *arg); + void sigint_handler(void); +--- a/main.c ++++ b/main.c +@@ -15,6 +15,8 @@ + #include "main.h" + #include <errno.h> + ++extern sigset_t signal_set; ++ + int main(int argc, char **argv) + { + extern char *optarg; diff --git a/net-misc/aget/files/aget-0.4.1-r1.patch b/net-misc/aget/files/aget-0.4.1-overflow.patch index fe804901528c..998dc128e3dd 100644 --- a/net-misc/aget/files/aget-0.4.1-r1.patch +++ b/net-misc/aget/files/aget-0.4.1-overflow.patch @@ -37,8 +37,8 @@ than setting GETRECVSIZ bytes to the value of 0. By Kevin Pyle. dr = recv(sd, rbuf, GETRECVSIZ, 0); if ((td->offset + dr) > foffset) dw = pwrite(td->fd, rbuf, foffset - td->offset, td->offset); ---- aget-0.4.1/Head.c 2010-09-20 03:41:27.236019179 +0200 -+++ aget-0.4.1/Head.c 2010-09-20 03:43:00.087098655 +0200 +--- aget-0.4.1/Head.c ++++ aget-0.4.1/Head.c @@ -1,5 +1,4 @@ #ifndef SOLARIS -#define _XOPEN_SOURCE 500 |