pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/freenet-tools Make build and work on Interix.
details: https://anonhg.NetBSD.org/pkgsrc/rev/6470f99bbe29
branches: trunk
changeset: 482546:6470f99bbe29
user: tv <tv%pkgsrc.org@localhost>
date: Fri Oct 29 17:06:50 2004 +0000
description:
Make build and work on Interix.
diffstat:
net/freenet-tools/distinfo | 5 +++--
net/freenet-tools/patches/patch-aa | 29 ++++++++++++++++++++++++++---
net/freenet-tools/patches/patch-ab | 31 +++++++++++++++++++++++++++++++
3 files changed, 60 insertions(+), 5 deletions(-)
diffs (85 lines):
diff -r b966b28e6ea6 -r 6470f99bbe29 net/freenet-tools/distinfo
--- a/net/freenet-tools/distinfo Fri Oct 29 15:15:50 2004 +0000
+++ b/net/freenet-tools/distinfo Fri Oct 29 17:06:50 2004 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2004/07/25 15:36:31 tv Exp $
+$NetBSD: distinfo,v 1.3 2004/10/29 17:06:50 tv Exp $
SHA1 (ft-0.2.23.tgz) = b247b56ff84ec871292c3fc2e55b812f19ab0f23
Size (ft-0.2.23.tgz) = 40547 bytes
-SHA1 (patch-aa) = 12fb2c63b24a06f43f03466f16f994e911367189
+SHA1 (patch-aa) = 9e7675096a524eb6cfd064eaa00f36e02d85f62f
+SHA1 (patch-ab) = 77110bb0ff189cc46a7bc79253bf17f6fd17dc18
diff -r b966b28e6ea6 -r 6470f99bbe29 net/freenet-tools/patches/patch-aa
--- a/net/freenet-tools/patches/patch-aa Fri Oct 29 15:15:50 2004 +0000
+++ b/net/freenet-tools/patches/patch-aa Fri Oct 29 17:06:50 2004 +0000
@@ -1,8 +1,31 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/03/29 18:43:47 tv Exp $
+$NetBSD: patch-aa,v 1.2 2004/10/29 17:06:50 tv Exp $
---- ftmain.c.orig Wed Sep 24 22:56:49 2003
+--- ftmain.c.orig Thu May 20 06:31:47 2004
+++ ftmain.c
-@@ -248,8 +248,7 @@ int main(int argc, char **argv)
+@@ -218,9 +218,9 @@ void usage(int cmd)
+ }
+ }
+
+-#ifdef __CYGWIN__
+-/* The CYGWIN libc does not have a timegm() function */
+-time_t cyg_timegm(struct tm *tm)
++#if defined(__CYGWIN__) || defined(__INTERIX)
++/* Replacement timegm() function for libc's missing it */
++time_t timegm(struct tm *tm)
+ {
+ time_t time_temp;
+ struct tm *tm_temp;
+@@ -234,7 +234,9 @@ time_t cyg_timegm(struct tm *tm)
+ tm_temp = gmtime(&time_temp);
+ return (time_t)(time_temp + (time_temp - mktime(tm_temp)));
+ }
++#endif
+
++#ifdef __CYGWIN__
+ ////////////////////////////////////////////////////////
+ // private popen2() - in-fact this is exact copy of
+ // newlib/libc/posix.c/popen.c with fork() instead of vfork()
+@@ -420,8 +422,7 @@ int main(int argc, char **argv)
} else {
progname = strdup(argv[0]);
free(progpath);
diff -r b966b28e6ea6 -r 6470f99bbe29 net/freenet-tools/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/freenet-tools/patches/patch-ab Fri Oct 29 17:06:50 2004 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1 2004/10/29 17:06:50 tv Exp $
+
+--- ft.h.orig Thu May 20 06:31:46 2004
++++ ft.h
+@@ -44,7 +44,6 @@
+ #include <dirent.h>
+
+ #ifdef __CYGWIN__
+-#define timegm(x) cyg_timegm(x)
+ #define OPEN_RB "rb"
+ #define OPEN_WB "wb"
+ #else
+@@ -111,8 +110,16 @@ enum {
+ #define UNKNOWNERROR "UNKNOWN"
+ #endif
+
+-#ifdef __CYGWIN__
+-time_t cyg_timegm(struct tm *tm);
++#if defined(__CYGWIN__) || defined(__INTERIX)
++time_t timegm(struct tm *tm);
++#endif
++
++#ifdef __INTERIX
++#define socklen_t int
++#define strtoull _strtouq
++
++/* hidden version of strtoull() in libc */
++u_quad_t _strtouq(const char *, char **, int);
+ #endif
+
+ #ifdef __cplusplus
Home |
Main Index |
Thread Index |
Old Index