Remove debug output.
[asterisk-bristuff.git] / include / solaris-compat / compat.h
blobb34cf11f48ceeab86cdde09179f6ac96a48b2828
1 #ifndef _SOLARIS_COMPAT_H
2 #define _SOLARIS_COMPAT_H
4 #define __BEGIN_DECLS
5 #define __END_DECLS
7 #ifndef __P
8 #define __P(p) p
9 #endif
11 #include <alloca.h>
12 #include <strings.h>
13 #include <string.h>
14 #include <pthread.h>
15 #include <sys/stat.h>
16 #include <signal.h>
17 #include <netinet/in.h>
19 #ifndef BYTE_ORDER
20 #define LITTLE_ENDIAN 1234
21 #define BIG_ENDIAN 4321
23 #ifdef __sparc__
24 #define BYTE_ORDER BIG_ENDIAN
25 #else
26 #define BYTE_ORDER LITTLE_ENDIAN
27 #endif
28 #endif
30 #ifndef __BYTE_ORDER
31 #define __LITTLE_ENDIAN LITTLE_ENDIAN
32 #define __BIG_ENDIAN BIG_ENDIAN
33 #define __BYTE_ORDER BYTE_ORDER
34 #endif
36 #ifndef __BIT_TYPES_DEFINED__
37 #define __BIT_TYPES_DEFINED__
38 typedef unsigned char u_int8_t;
39 typedef unsigned short u_int16_t;
40 typedef unsigned int u_int32_t;
41 #endif
43 char* strsep(char** str, const char* delims);
44 int setenv(const char *name, const char *value, int overwrite);
45 int unsetenv(const char *name);
46 #endif