From c7cb9b2f595838104e085124b79cd7983aa11d34 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Tue, 17 Dec 2013 18:24:46 +0100 Subject: [PATCH] delete_driver_settings.cpp: Get rid of the weak alias. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As weak aliases are not supported on OS X, this caused problems when building Haiku on OS X, as this file is also used for the host tools. Signed-off-by: Axel Dörfler --- src/system/libroot/os/driver_settings.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/system/libroot/os/driver_settings.cpp b/src/system/libroot/os/driver_settings.cpp index 5f7130d72f..b126996b42 100644 --- a/src/system/libroot/os/driver_settings.cpp +++ b/src/system/libroot/os/driver_settings.cpp @@ -953,8 +953,8 @@ get_driver_settings(void *handle) } -// this creates an alias of the above function -// unload_driver_settings() is the same as delete_driver_settings() -extern "C" __typeof(unload_driver_settings) delete_driver_settings - __attribute__((weak, alias ("unload_driver_settings"))); - +status_t +delete_driver_settings(void *_handle) +{ + return unload_driver_settings(_handle); +}