#include "compat.h"
#if (defined(__GLIBC__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
#if (defined(__GLIBC__) || defined(__linux__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
/*
* Initialize a pthread mutex. This never fails.
tsocks_mutex_unlock(&o->mutex);
}
#endif /* __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__ */
#endif /* __GLIBC__, __linux__, __darwin__, __FreeBSD__, __NetBSD__ */
#define __darwin__ 1
#endif
#define RTLD_NEXT ((void *) -1)
#else
#error "OS not supported."
#if defined(__linux__)
#include <unistd.h>
long count;
};
* Get a reference by incrementing the refcount.
#error "OS not supported"
#endif /* __GLIBC__, __FreeBSD__, __darwin__ */
#endif /* __GLIBC__, __linux__, __FreeBSD__, __darwin__ */
#endif /* TORSOCKS_REF_H */
#define TSOCKS_DECL(name, type, sig) \
extern type tsocks_##name(sig);
/* connect(2) */
#include <sys/types.h>
#endif /* __GLIBC__ , __FreeBSD__, __darwin__, __NetBSD__ */
#endif /* __GLIBC__, __linux__, __FreeBSD__, __darwin__, __NetBSD__ */
#if (defined(__linux__))