diff options
Diffstat (limited to 'ftp/mget/files')
-rw-r--r-- | ftp/mget/files/patch-Makefile | 18 | ||||
-rw-r--r-- | ftp/mget/files/patch-mget.c | 13 | ||||
-rw-r--r-- | ftp/mget/files/patch-mget.h | 14 |
3 files changed, 45 insertions, 0 deletions
diff --git a/ftp/mget/files/patch-Makefile b/ftp/mget/files/patch-Makefile new file mode 100644 index 000000000000..615ed024a7ce --- /dev/null +++ b/ftp/mget/files/patch-Makefile @@ -0,0 +1,18 @@ +--- Makefile.orig Sat Sep 22 00:28:48 2001 ++++ Makefile Sat Sep 22 00:29:33 2001 +@@ -2,12 +2,13 @@ + CC=gcc + DEFS=-DHAS_HERROR -DHAVE_IPV6 -DHAVE_GETOPT + DEBUG= +-CFLAGS=-Wall $(DEFS) $(DEBUG) ++CFLAGS+=-Wall $(DEFS) $(DEBUG) -I%%LOCALBASE%%/include + #CFLAGS=-Wall +-LDFLAGS=-lpthread ++LDFLAGS=-lpthread -L%%LOCALBASE%%/lib -lgnugetopt + #LDFLAGS=-lpthread -lsocket -lnsl + + mget: mget.o mgetutil.o ++ ${CC} ${LDFLAGS} mget.o mgetutil.o -o mget + + mget.usriv: mget_usriv.o mgetutil.o + $(CC) $(LDFLAGS) mget_usriv.o mgetutil.o -o mget.usriv diff --git a/ftp/mget/files/patch-mget.c b/ftp/mget/files/patch-mget.c new file mode 100644 index 000000000000..1ee095746c2a --- /dev/null +++ b/ftp/mget/files/patch-mget.c @@ -0,0 +1,13 @@ +--- mget.c.orig Sat Sep 22 00:34:44 2001 ++++ mget.c Sat Sep 22 00:35:26 2001 +@@ -604,8 +604,10 @@ + return segment; + } + ++/* + #if !defined(linux) || !defined(HAVE_IPV6) + char *inet_ntop(int af, INADDR *src, char *dst, size_t cnt){ + return inet_ntoa((INADDR)(*src)); + } + #endif ++*/ diff --git a/ftp/mget/files/patch-mget.h b/ftp/mget/files/patch-mget.h new file mode 100644 index 000000000000..eedaa20bc27f --- /dev/null +++ b/ftp/mget/files/patch-mget.h @@ -0,0 +1,14 @@ +--- mget.h.orig Sat Sep 22 00:34:48 2001 ++++ mget.h Sat Sep 22 00:35:03 2001 +@@ -60,9 +60,11 @@ + #define herror(A) printf("%s\n",A) + #endif + ++/* + #if !defined(__linux__) || !defined(HAVE_IPV6) + char *inet_ntop(int , INADDR *, char *, size_t ); + #endif ++*/ + + #ifndef NULL + #define NULL 0 //some compilers complained |