File: socks5p.h

package info (click to toggle)
epic5 2.0.1-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 4,696 kB
  • ctags: 6,357
  • sloc: ansic: 69,814; makefile: 715; ruby: 227; sh: 178; perl: 13
file content (39 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * socks5p.h -- Compatability shim for <socks.h>, public domain
 * 
 * If you #define INCLUDE_PROTOTYPES, then socks5 will try to
 * #include "socks5p.h" which isn't installed normally.  But on amd64,
 * we *must* have prototypes to get functions like localtime() correct.
 * So this file provides the limited set of things necessary to make
 * #define INCLUDE_PROTOTYPES work with <socks.h>
 */
#ifndef __socks5p_h__
#define __socks5p_h__

#include <setjmp.h>

#ifndef P
#define P(x) x
#endif

#ifndef LIBPREFIX
#ifdef USE_SOCKS4_PREFIX
#define LIBPREFIX(x)  R ## x
#else
#define LIBPREFIX(x)  SOCKS ## x
#endif
#endif

#ifndef IORETTYPE 
#define IORETTYPE int
#endif

#ifndef IOPTRTYPE 
#define IOPTRTYPE void *
#endif

#ifndef IOLENTYPE 
#define IOLENTYPE size_t
#endif

#endif /* __socks5p_h__ */