From: Lorenzo Cavallaro Date: Tue, 30 Mar 2010 13:08:14 +0000 (+0000) Subject: Fixed missing __UNCONST macro definition in previous patch. X-Git-Tag: v3.1.7~190 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/CHANGES?a=commitdiff_plain;h=2ff73172b443791a9027aec35b1fd6b795f567f4;p=minix.git Fixed missing __UNCONST macro definition in previous patch. --- diff --git a/lib/libc/posix/_execl.c b/lib/libc/posix/_execl.c index 9337e59ae..ba3001917 100644 --- a/lib/libc/posix/_execl.c +++ b/lib/libc/posix/_execl.c @@ -38,6 +38,10 @@ #include #include +#ifndef __UNCONST +#define __UNCONST(x) ((void *) (x)) +#endif + extern char * const **_penviron; /* The default environment. */ int diff --git a/lib/libc/posix/_execle.c b/lib/libc/posix/_execle.c index bb9fe1987..235fac995 100644 --- a/lib/libc/posix/_execle.c +++ b/lib/libc/posix/_execle.c @@ -38,6 +38,10 @@ #include #include +#ifndef __UNCONST +#define __UNCONST(x) ((void *) (x)) +#endif + int execle(const char *path, const char *arg1, ...) /* execle("/bin/sh", "sh", "-c", "example", (char *) 0, my_env_array); */ { diff --git a/lib/libc/posix/_execlp.c b/lib/libc/posix/_execlp.c index 4d3daefd0..9965223fb 100644 --- a/lib/libc/posix/_execlp.c +++ b/lib/libc/posix/_execlp.c @@ -38,6 +38,10 @@ #include #include +#ifndef __UNCONST +#define __UNCONST(x) ((void *) (x)) +#endif + int execlp(const char *file, const char *arg1, ...) /* execlp("sh", "sh", "-c", "example", (char *) 0); */ {