[Pkg-anonymity-tools] Bug#767235: torsocks: FTBFS on hurd-i386
Svante Signell
svante.signell at gmail.com
Wed Oct 29 14:21:32 UTC 2014
On Wed, 2014-10-29 at 15:12 +0100, Samuel Thibault wrote:
> 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?
These are only case statements in syscall.c to the handle functions.
More information about the Pkg-anonymity-tools
mailing list