Ticket #6080: patch-tsocks.c

File patch-tsocks.c, 515 bytes (added by darren.bane@…, 18 years ago)

Declares _init as having attribute((constructor))

Line 
1--- tsocks.c_orig       2005-12-14 18:12:36.000000000 +0000
2+++ tsocks.c    2005-12-14 18:12:56.000000000 +0000
3@@ -68,7 +68,6 @@
4 static char *conffile = NULL;
5 
6 /* Exported Function Prototypes */
7-void _init(void);
8 int connect(CONNECT_SIGNATURE);
9 int select(SELECT_SIGNATURE);
10 int poll(POLL_SIGNATURE);
11@@ -100,6 +99,7 @@
12 static int read_socksv5_connect(struct connreq *conn);
13 static int read_socksv5_auth(struct connreq *conn);
14 
15+__attribute__((constructor))
16 void _init(void) {
17 #ifdef USE_OLD_DLSYM
18        void *lib;