diff options
author | Stefan Eßer <se@FreeBSD.org> | 2020-09-22 16:59:52 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2020-09-22 16:59:52 +0000 |
commit | 4c971dd91decb800125795bf8197d216baf97c9c (patch) | |
tree | a8db345fd55e7d066702e78505f49a5a43beaf79 /ftp/wput/files | |
parent | Add a build dependency on GNU as (diff) |
Fix build with -fno-common
While here add license (GPLv2) and strip binary.
Notes
Notes:
svn path=/head/; revision=549609
Diffstat (limited to 'ftp/wput/files')
-rw-r--r-- | ftp/wput/files/patch-src_wput.c | 10 | ||||
-rw-r--r-- | ftp/wput/files/patch-src_wput.h | 22 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ftp/wput/files/patch-src_wput.c b/ftp/wput/files/patch-src_wput.c new file mode 100644 index 000000000000..27a33031a3b9 --- /dev/null +++ b/ftp/wput/files/patch-src_wput.c @@ -0,0 +1,10 @@ +--- src/wput.c.orig 2008-09-27 10:31:23 UTC ++++ src/wput.c +@@ -69,6 +69,7 @@ int start_fsession(); + int start_ftp(); + int start_recur_ftp(); + void read_netrc_file(void); ++opt_t opt; + + int main(int argc, char *argv[]){ + #ifdef WIN32 diff --git a/ftp/wput/files/patch-src_wput.h b/ftp/wput/files/patch-src_wput.h new file mode 100644 index 000000000000..11bef1f84709 --- /dev/null +++ b/ftp/wput/files/patch-src_wput.h @@ -0,0 +1,22 @@ +--- src/wput.h.orig 2008-09-27 10:31:23 UTC ++++ src/wput.h +@@ -79,7 +79,7 @@ typedef struct _password_list { + struct _password_list * next; + } password_list; + +-struct global_options { ++typedef struct global_options { + char * sbuf; + int sbuflen; + unsigned int bindaddr; +@@ -140,7 +140,9 @@ struct global_options { + + unsigned short int retry_interval; + unsigned int speed_limit; +-} opt; ++} opt_t; ++ ++extern opt_t opt; + + extern _fsession * fsession_queue_entry_point; + extern char * email_address; |