FreeBSD compability (#57)
This commit is contained in:
		
							parent
							
								
									04edad3801
								
							
						
					
					
						commit
						5fe41affba
					
				
					 6 changed files with 15 additions and 9 deletions
				
			
		|  | @ -25,8 +25,8 @@ | |||
| #if ABSL_STACKTRACE_INL_HEADER | ||||
| #error ABSL_STACKTRACE_INL_HEADER cannot be directly set | ||||
| #elif defined(__native_client__) || defined(__APPLE__) || \ | ||||
|     defined(__ANDROID__) || defined(__myriad2__) || defined(asmjs__) || \ | ||||
|     defined(__Fuchsia__) | ||||
|     defined(__FreeBSD__) || defined(__ANDROID__) || defined(__myriad2__) || \ | ||||
|     defined(asmjs__) || defined(__Fuchsia__) | ||||
| #define ABSL_STACKTRACE_INL_HEADER \ | ||||
|     "absl/debugging/internal/stacktrace_unimplemented-inl.inc" | ||||
| 
 | ||||
|  |  | |||
|  | @ -47,7 +47,8 @@ static inline void *StacktracePowerPCGetLR(void **sp) { | |||
|   return *(sp+2); | ||||
| #elif defined(_CALL_SYSV)
 | ||||
|   return *(sp+1); | ||||
| #elif defined(__APPLE__) || (defined(__linux__) && defined(__PPC64__))
 | ||||
| #elif defined(__APPLE__) || defined(__FreeBSD__) || \
 | ||||
|   (defined(__linux__) && defined(__PPC64__)) | ||||
|   // This check is in case the compiler doesn't define _CALL_AIX/etc.
 | ||||
|   return *(sp+2); | ||||
| #elif defined(__linux)
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue