mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Merge slimey's Solaris compatibility (with small mods) (bug #2740)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -95,6 +95,23 @@ LOCAL_USER_DECL; | ||||
| #define	OURCLID	"2564286275"		/* The callerid to be displayed when calling */ | ||||
| #endif | ||||
|  | ||||
| #ifdef SOLARIS | ||||
| int flock(int fd, int type) | ||||
| { | ||||
| 	struct flock lock; | ||||
|  | ||||
|         lock.l_type = type; | ||||
|         lock.l_whence = SEEK_SET; | ||||
|         lock.l_start = 0; | ||||
|         lock.l_len = 0; | ||||
|  | ||||
| 	return fcntl(f, F_SETLK, &lock); | ||||
| } | ||||
|  | ||||
| #define LOCK_EX F_WRLCK | ||||
| #define LOCK_UN F_UNLCK | ||||
| #endif | ||||
|  | ||||
| static void *qcall_do(void *arg); | ||||
|  | ||||
| static void *qcall(void *ignore) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user