mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 05:11:19 +00:00 
			
		
		
		
	Fix a build on alpine, whose libc is musl (#726)
Change __syscall_slong_t to __SYSCALL_SLONG_TYPE, and use it when macro __SYSCALL_SLONG_TYPE is defined.
This commit is contained in:
		
							parent
							
								
									79f163d08b
								
							
						
					
					
						commit
						336abc2b27
					
				|  | @ -2160,8 +2160,8 @@ static void convert_timestamp( | |||
|     struct timespec *out | ||||
| ) { | ||||
|   // Store sub-second remainder.
 | ||||
| #ifndef __APPLE__ | ||||
|   out->tv_nsec = (__syscall_slong_t)(in % 1000000000); | ||||
| #if defined(__SYSCALL_SLONG_TYPE) | ||||
|   out->tv_nsec = (__SYSCALL_SLONG_TYPE)(in % 1000000000); | ||||
| #else | ||||
|   out->tv_nsec = (long)(in % 1000000000); | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 YAMAMOTO Takashi
						YAMAMOTO Takashi