include/solaris-compat/compat.h

Go to the documentation of this file.
00001 #ifndef _SOLARIS_COMPAT_H
00002 #define _SOLARIS_COMPAT_H
00003 
00004 #define __BEGIN_DECLS
00005 #define __END_DECLS
00006 
00007 #ifndef __P
00008 #define __P(p) p
00009 #endif
00010 
00011 #include <alloca.h>
00012 #include <strings.h>
00013 #include <string.h>
00014 #include <pthread.h>
00015 #include <sys/stat.h>
00016 #include <signal.h>
00017 #include <netinet/in.h>
00018 
00019 #ifndef BYTE_ORDER
00020 #define LITTLE_ENDIAN   1234
00021 #define BIG_ENDIAN   4321
00022 
00023 #ifdef __sparc__
00024 #define BYTE_ORDER   BIG_ENDIAN
00025 #else
00026 #define BYTE_ORDER   LITTLE_ENDIAN
00027 #endif
00028 #endif
00029 
00030 #ifndef __BYTE_ORDER
00031 #define __LITTLE_ENDIAN LITTLE_ENDIAN
00032 #define __BIG_ENDIAN BIG_ENDIAN
00033 #define __BYTE_ORDER BYTE_ORDER
00034 #endif
00035 
00036 #ifndef __BIT_TYPES_DEFINED__
00037 #define __BIT_TYPES_DEFINED__
00038 typedef unsigned char   u_int8_t;
00039 typedef unsigned short  u_int16_t;
00040 typedef unsigned int u_int32_t;
00041 #endif
00042 
00043 char* strsep(char** str, const char* delims);
00044 int setenv(const char *name, const char *value, int overwrite);
00045 int unsetenv(const char *name);
00046 #endif

Generated on Thu Apr 16 06:27:30 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6