Asterisk - The Open Source Telephony Project GIT-master-f3e88d3
include/solaris-compat/compat.h
Go to the documentation of this file.
1#ifndef _SOLARIS_COMPAT_H
2#define _SOLARIS_COMPAT_H
3
4#define __BEGIN_DECLS
5#define __END_DECLS
6
7#ifndef __P
8#define __P(p) p
9#endif
10
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>
18
19#ifndef BYTE_ORDER
20#define LITTLE_ENDIAN 1234
21#define BIG_ENDIAN 4321
22
23#ifdef __sparc__
24#define BYTE_ORDER BIG_ENDIAN
25#else
26#define BYTE_ORDER LITTLE_ENDIAN
27#endif
28#endif
29
30#ifndef __BYTE_ORDER
31#define __LITTLE_ENDIAN LITTLE_ENDIAN
32#define __BIG_ENDIAN BIG_ENDIAN
33#define __BYTE_ORDER BYTE_ORDER
34#endif
35
36#ifndef __BIT_TYPES_DEFINED__
37#define __BIT_TYPES_DEFINED__
38typedef unsigned char u_int8_t;
39typedef unsigned short u_int16_t;
40typedef unsigned int u_int32_t;
41#endif
42
43char* strsep(char** str, const char* delims);
44int setenv(const char *name, const char *value, int overwrite);
45int unsetenv(const char *name);
46#endif
const char * str
Definition: app_jack.c:147
static const char name[]
Definition: format_mp3.c:68
unsigned int u_int32_t
int unsetenv(const char *name)
int setenv(const char *name, const char *value, int overwrite)
unsigned short u_int16_t
unsigned char u_int8_t
char * strsep(char **str, const char *delims)
String manipulation functions.
int value
Definition: syslog.c:37