mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Solaris compatibility fixes
Review: https://reviewboard.asterisk.org/r/942/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -82,6 +82,7 @@ AST_TEST_DEFINE(test_timezone_watch) | ||||
| 				ast_log(LOG_WARNING, "system(%s) returned non-zero: %d\n", syscmd, system_res); | ||||
| 			} | ||||
| 			ast_localtime_wakeup_monitor(); | ||||
| 			sched_yield(); | ||||
| 			ast_localtime(&tv, &atm[i], tzfile); | ||||
| 			if (i != 0) { | ||||
| 				if (atm[i].tm_hour == atm[i - 1].tm_hour) { | ||||
|   | ||||
| @@ -253,6 +253,7 @@ AST_TEST_DEFINE(crypto_loaded_test) | ||||
| 		break; | ||||
| 	} | ||||
|  | ||||
| #if 0 /* Not defined on Solaris */ | ||||
| 	ast_test_status_update(test, | ||||
| 			       "address of __stub__ast_crypto_loaded is %p\n", | ||||
| 			       __stub__ast_crypto_loaded); | ||||
| @@ -264,6 +265,7 @@ AST_TEST_DEFINE(crypto_loaded_test) | ||||
| 	ast_test_status_update(test, | ||||
| 			       "pointer to ast_crypto_loaded is %p\n", | ||||
| 			       ast_crypto_loaded); | ||||
| #endif | ||||
|  | ||||
| 	return ast_crypto_loaded() ? AST_TEST_PASS : AST_TEST_FAIL; | ||||
| } | ||||
| @@ -308,6 +310,7 @@ AST_TEST_DEFINE(agi_loaded_test) | ||||
| 		break; | ||||
| 	} | ||||
|  | ||||
| #if 0 | ||||
| 	ast_test_status_update(test, | ||||
| 			       "address of __stub__ast_agi_register is %p\n", | ||||
| 			       __stub__ast_agi_register); | ||||
| @@ -319,6 +322,7 @@ AST_TEST_DEFINE(agi_loaded_test) | ||||
| 	ast_test_status_update(test, | ||||
| 			       "pointer to ast_agi_register is %p\n", | ||||
| 			       ast_agi_register); | ||||
| #endif | ||||
|  | ||||
| 	if (ast_agi_register(ast_module_info->self, &noop_command) == AST_OPTIONAL_API_UNAVAILABLE) { | ||||
| 		return AST_TEST_FAIL; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user