98adfca88b
this is a major rewrite changes: -much more flexible debug logging -support for non blocking sockets -addition of the tsocks shell script -TSOCKS_CONF_FILE environment variable -pkg changes: -libtoolized -changed redefinition of the crt0 _init into a __constructor__ attribute, to avoid link errors with jmmv's blessing
22 lines
669 B
Text
22 lines
669 B
Text
$NetBSD: patch-ac,v 1.1 2005/08/04 10:22:21 drochner Exp $
|
|
|
|
--- tsocks.c.orig 2005-08-04 11:46:19.000000000 +0200
|
|
+++ tsocks.c
|
|
@@ -68,7 +68,7 @@ static int suid = 0;
|
|
static char *conffile = NULL;
|
|
|
|
/* Exported Function Prototypes */
|
|
-void _init(void);
|
|
+void __tsocks_init(void) __attribute__ ((__constructor__));
|
|
int connect(CONNECT_SIGNATURE);
|
|
int select(SELECT_SIGNATURE);
|
|
int poll(POLL_SIGNATURE);
|
|
@@ -100,7 +100,7 @@ static int read_socksv4_req(struct connr
|
|
static int read_socksv5_connect(struct connreq *conn);
|
|
static int read_socksv5_auth(struct connreq *conn);
|
|
|
|
-void _init(void) {
|
|
+void __tsocks_init(void) {
|
|
#ifdef USE_OLD_DLSYM
|
|
void *lib;
|
|
#endif
|