[Asterisk-cvs] asterisk/include/solaris-compat compat.h,1.1,1.2
markster at lists.digium.com
markster at lists.digium.com
Thu Mar 17 17:16:54 CST 2005
Update of /usr/cvsroot/asterisk/include/solaris-compat
In directory mongoose.digium.com:/tmp/cvs-serv1645/include/solaris-compat
Modified Files:
compat.h
Log Message:
Add support for Solaris/x86 (bug #3064)
Index: compat.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/solaris-compat/compat.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- compat.h 14 Dec 2004 23:36:30 -0000 1.1
+++ compat.h 17 Mar 2005 23:12:15 -0000 1.2
@@ -8,18 +8,29 @@
#define __P(p) p
#endif
-#define LITTLE_ENDIAN 1234
-#define BIG_ENDIAN 4321
+#include <alloca.h>
+#include <strings.h>
+#include <string.h>
+#include <pthread.h>
+#include <sys/stat.h>
+#include <signal.h>
+#include <netinet/in.h>
-#define __LITTLE_ENDIAN 1234
-#define __BIG_ENDIAN 4321
+#ifndef BYTE_ORDER
+#define LITTLE_ENDIAN 1234
+#define BIG_ENDIAN 4321
#ifdef __sparc__
-#define BYTE_ORDER BIG_ENDIAN
-#define __BYTE_ORDER BIG_ENDIAN
+#define BYTE_ORDER BIG_ENDIAN
#else
-#define BYTE_ORDER LITTLE_ENDIAN
-#define ____BYTE_ORDER BIG_ENDIAN
+#define BYTE_ORDER LITTLE_ENDIAN
+#endif
+#endif
+
+#ifndef __BYTE_ORDER
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#define __BIG_ENDIAN BIG_ENDIAN
+#define __BYTE_ORDER BYTE_ORDER
#endif
#ifndef __BIT_TYPES_DEFINED__
@@ -29,6 +40,9 @@
typedef unsigned int u_int32_t;
#endif
+char* strsep(char** str, const char* delims);
+uint64_t
+strtoq(const char *nptr, char **endptr, int base);
int setenv(const char *name, const char *value, int overwrite);
-
+int unsetenv(const char *name);
#endif
More information about the svn-commits
mailing list