nbsd libc: disable i386 exec*() optimisation

This commit is contained in:
Ben Gras 2011-07-06 11:34:03 +02:00
parent afc8f3defa
commit 9fdd167da4
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;