Menu

#7 Making it compile under NetBSD

open
nobody
None
5
2005-09-05
2005-09-05
Anonymous
No

Dear developers,

In the NetBSD package system i had to patch the
following to make it compile. The patches are against
the 1.04 release.

$NetBSD: patch-aa,v 1.1.1.1 2005/08/05 22:00:49 reinoud
Exp $

--- include/util.h.orig 2004-04-16 08:41:48.000000000 +0200
+++ include/util.h
@@ -28,9 +28,11 @@ int hexdecode (unsigned char *digest, in
typedef void (*exitfn_ptr) (int,void*);
int on_exit( exitfn_ptr exitfn, void* data) ;
#endif
+#if 0
#define malloc(s) use_btmalloc_instead
#define calloc(n,s) use_btcalloc_instead
#define realloc(p,s) use_btrealloc_instead
#define free(p) use_btfree_instead
+#endif

#endif
$NetBSD: patch-ab,v 1.2 2005/09/05 23:41:13 reinoud Exp $

--- src/peer.c.orig 2005-04-27 06:47:47.000000000 +0200
+++ src/peer.c
@@ -6,6 +6,7 @@
# include <arpa/inet.h>
# include <netdb.h>
# include <sys/socket.h>
+# include <limits.h>
# if HAVE_UNISTD_H
# include <unistd.h>
# endif

Regards,

Reinoud Zandijk
NetBSD developer

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.