nbsd libc: disable i386 exec*() optimisation
This commit is contained in:
		
							parent
							
								
									afc8f3defa
								
							
						
					
					
						commit
						9fdd167da4
					
				@ -56,7 +56,7 @@ int
 | 
			
		||||
execl(const char *name, const char *arg, ...)
 | 
			
		||||
{
 | 
			
		||||
	int r;
 | 
			
		||||
#if defined(__i386__) || defined(__m68k__)
 | 
			
		||||
#if (defined(__i386__) || defined(__m68k__)) && !defined(__minix)
 | 
			
		||||
	r = execve(name, __UNCONST(&arg), environ);
 | 
			
		||||
	return r;
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
@ -50,7 +50,7 @@ __weak_alias(execle,_execle)
 | 
			
		||||
int
 | 
			
		||||
execle(const char *name, const char *arg, ...)
 | 
			
		||||
{
 | 
			
		||||
#if defined(__i386__) || defined(__m68k__)
 | 
			
		||||
#if (defined(__i386__) || defined(__m68k__)) && !defined(__minix)
 | 
			
		||||
	va_list ap;
 | 
			
		||||
	char **envp;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -50,7 +50,7 @@ __weak_alias(execlp,_execlp)
 | 
			
		||||
int
 | 
			
		||||
execlp(const char *name, const char *arg, ...)
 | 
			
		||||
{
 | 
			
		||||
#if defined(__i386__) || defined(__m68k__)
 | 
			
		||||
#if (defined(__i386__) || defined(__m68k__)) && !defined(__minix)
 | 
			
		||||
	return execvp(name, __UNCONST(&arg));
 | 
			
		||||
#else
 | 
			
		||||
	va_list ap;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user