* _kern_remove_dir() didn't even compile... (test environment (of which
LibBeAdapter is a part of) isn't part of the build. * Added _kern_shutdown() function, so that the registrar still compiles even though __HAIKU__ is now defined for the target libbe_test. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16095 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f9cf8b6073
commit
5da7839924
@ -552,7 +552,7 @@ _kern_remove_dir(int fd, const char *relPath)
|
||||
if (error != B_OK)
|
||||
return error;
|
||||
|
||||
if (rmdir(path.Path()) < 0) {
|
||||
if (rmdir(path.Path()) < 0)
|
||||
return errno;
|
||||
|
||||
return B_OK;
|
||||
@ -735,3 +735,11 @@ _kern_get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSi
|
||||
return _kget_safemode_option_(parameter, buffer, _bufferSize);
|
||||
}
|
||||
|
||||
|
||||
extern "C" status_t
|
||||
_kern_shutdown(bool reboot)
|
||||
{
|
||||
puts(reboot ? "reboot" : "shutdown");
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user