[Pkg-anonymity-tools] Bug#767235: torsocks: FTBFS on hurd-i386

Samuel Thibault sthibault at debian.org
Wed Oct 29 14:12:07 UTC 2014


Svante Signell, le Wed 29 Oct 2014 15:04:08 +0100, a écrit :
> Index: torsocks-2.0.0/src/common/compat.h
> ===================================================================
> --- torsocks-2.0.0.orig/src/common/compat.h
> +++ torsocks-2.0.0/src/common/compat.h
> @@ -45,6 +45,20 @@ void tsocks_mutex_unlock(tsocks_mutex_t
>  #error "OS not supported."
>  #endif /* __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__ */
>  
> +#if defined(__GNU__)
> +#include <unistd.h>
> +#include <sys/syscall.h>
> +#include <mach/i386/syscall_sw.h>
> +//mach traps defined here: #include <mach/syscall_sw.h>
> +
> +/* Arbritary numbering: Hurd functions are not syscalls */
> +#define TSOCKS_NR_SOCKET    -1
> +#define TSOCKS_NR_CONNECT   -2
> +#define TSOCKS_NR_CLOSE     -3
> +#define TSOCKS_NR_MMAP      -4
> +#define TSOCKS_NR_MUNMAP    -5
> +#endif

Err, but then how is it supposed to work at all?

Samuel



More information about the Pkg-anonymity-tools mailing list