Browse Source

torsocks: Fix building with unified headers

android-5
Fredrik Fornwall 8 years ago
parent
commit
79a638ec4f
  1. 33
      packages/torsocks/src-lib-torsocks.h.patch

33
packages/torsocks/src-lib-torsocks.h.patch

@ -1,21 +1,12 @@
diff -u -r ../torsocks-2.2.0/src/lib/torsocks.h ./src/lib/torsocks.h diff -u -r ../torsocks-87b075dd16c675606adee792ef1e22691c51475b/src/lib/torsocks.h ./src/lib/torsocks.h
--- ../torsocks-2.2.0/src/lib/torsocks.h 2016-10-18 12:44:01.000000000 -0400 --- ../torsocks-87b075dd16c675606adee792ef1e22691c51475b/src/lib/torsocks.h 2016-12-22 16:45:31.000000000 +0100
+++ ./src/lib/torsocks.h 2016-12-20 21:22:07.973637763 -0500 +++ ./src/lib/torsocks.h 2017-06-30 23:28:56.028584667 +0200
@@ -167,7 +167,7 @@ @@ -314,7 +316,7 @@
#define LIBC_GETHOSTBYADDR_R_NAME gethostbyaddr_r extern TSOCKS_LIBC_DECL(sendto, LIBC_SENDTO_RET_TYPE, LIBC_SENDTO_SIG)
#define LIBC_GETHOSTBYADDR_R_NAME_STR XSTR(LIBC_GETHOSTBYADDR_R_NAME) TSOCKS_DECL(sendto, LIBC_SENDTO_RET_TYPE, LIBC_SENDTO_SIG)
#define LIBC_GETHOSTBYADDR_R_RET_TYPE int #define LIBC_SENDTO_DECL \
-#define LIBC_GETHOSTBYADDR_R_SIG const void *addr, socklen_t len, int type, \ - LIBC_SENDTO_RET_TYPE LIBC_SENDTO_NAME(LIBC_SENDTO_SIG)
+#define LIBC_GETHOSTBYADDR_R_SIG const void *addr, int len, int type, \ + LIBC_SENDTO_RET_TYPE LIBC_SENDTO_NAME(LIBC_SENDTO_SIG) __overloadable
struct hostent *hret, char *buf, size_t buflen, \
struct hostent **result, int *h_errnop /* socket(2) */
#define LIBC_GETHOSTBYADDR_R_ARGS addr, len, type, hret, buf, \ extern TSOCKS_LIBC_DECL(socket, LIBC_SOCKET_RET_TYPE, LIBC_SOCKET_SIG)
@@ -197,7 +197,7 @@
/* recvmsg(2) */
#define LIBC_RECVMSG_NAME recvmsg
#define LIBC_RECVMSG_NAME_STR XSTR(LIBC_RECVMSG_NAME)
-#define LIBC_RECVMSG_RET_TYPE ssize_t
+#define LIBC_RECVMSG_RET_TYPE int
#define LIBC_RECVMSG_SIG \
int sockfd, struct msghdr *msg, int flags
#define LIBC_RECVMSG_ARGS \

Loading…
Cancel
Save