| 
									
										
										
										
											2004-12-14 23:36:30 +00:00
										 |  |  | #ifndef _SOLARIS_COMPAT_H
 | 
					
						
							|  |  |  | #define _SOLARIS_COMPAT_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define __BEGIN_DECLS
 | 
					
						
							|  |  |  | #define __END_DECLS
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __P
 | 
					
						
							|  |  |  | #define __P(p) p
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-03-17 23:12:15 +00:00
										 |  |  | #include <alloca.h>
 | 
					
						
							|  |  |  | #include <strings.h>
 | 
					
						
							|  |  |  | #include <string.h>
 | 
					
						
							|  |  |  | #include <pthread.h>
 | 
					
						
							|  |  |  | #include <sys/stat.h>
 | 
					
						
							|  |  |  | #include <signal.h>
 | 
					
						
							|  |  |  | #include <netinet/in.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef BYTE_ORDER
 | 
					
						
							|  |  |  | #define LITTLE_ENDIAN	1234
 | 
					
						
							|  |  |  | #define BIG_ENDIAN	4321
 | 
					
						
							| 
									
										
										
										
											2004-12-14 23:36:30 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifdef __sparc__
 | 
					
						
							| 
									
										
										
										
											2005-03-17 23:12:15 +00:00
										 |  |  | #define BYTE_ORDER	BIG_ENDIAN
 | 
					
						
							| 
									
										
										
										
											2004-12-14 23:36:30 +00:00
										 |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2005-03-17 23:12:15 +00:00
										 |  |  | #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
 | 
					
						
							| 
									
										
										
										
											2004-12-14 23:36:30 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __BIT_TYPES_DEFINED__
 | 
					
						
							|  |  |  | #define __BIT_TYPES_DEFINED__
 | 
					
						
							|  |  |  | typedef unsigned char	u_int8_t; | 
					
						
							|  |  |  | typedef unsigned short	u_int16_t; | 
					
						
							|  |  |  | typedef unsigned int	u_int32_t; | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-03-17 23:12:15 +00:00
										 |  |  | char* strsep(char** str, const char* delims); | 
					
						
							| 
									
										
										
										
											2004-12-14 23:36:30 +00:00
										 |  |  | int setenv(const char *name, const char *value, int overwrite); | 
					
						
							| 
									
										
										
										
											2006-03-29 04:14:12 +00:00
										 |  |  | int unsetenv(const char *name); | 
					
						
							| 
									
										
										
										
											2004-12-14 23:36:30 +00:00
										 |  |  | #endif
 |