libroot: Expose exect() only if building with BeOS ABI compatibility.
It's non-standard and redundant, but was in the public R5 headers, so we need to keep it around at least for compatibility.
This commit is contained in:
@@ -240,7 +240,7 @@ execle(const char* path, const char* arg, ... /*, char** env */)
|
|||||||
return do_exec(path, (char* const*)args, env, false);
|
return do_exec(path, (char* const*)args, env, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: remove this again if possible
|
#ifdef __HAIKU_BEOS_COMPATIBLE
|
||||||
extern int exect(const char *path, char *const *argv);
|
extern int exect(const char *path, char *const *argv);
|
||||||
|
|
||||||
int
|
int
|
||||||
@@ -248,3 +248,4 @@ exect(const char* path, char* const* argv)
|
|||||||
{
|
{
|
||||||
return execv(path, argv);
|
return execv(path, argv);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user