mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			523 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			523 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| The same change was made in src/.
 | |
| 
 | |
| --- a/test/ptrace-2.c
 | |
| +++ b/test/ptrace-2.c
 | |
| @@ -52,6 +52,12 @@
 | |
|  #    endif
 | |
|  #endif
 | |
|  
 | |
| +#if defined(__GLIBC__)
 | |
| +#  define PTRACE_REQUEST_TYPE enum __ptrace_request
 | |
| +#else
 | |
| +#  define PTRACE_REQUEST_TYPE int
 | |
| +#endif
 | |
| +
 | |
|  /**
 | |
|   * Compute the offset of the register @reg_name in the USER area.
 | |
|   */
 | |
| @@ -200,7 +206,7 @@
 | |
|  
 | |
|  int main(int argc, char *argv[])
 | |
|  {
 | |
| -	enum __ptrace_request restart_how;
 | |
| +	PTRACE_REQUEST_TYPE restart_how;
 | |
|  	int last_exit_status = -1;
 | |
|  	pid_t *pids = NULL;
 | |
|  	long status;
 |