Ticket #10325: 0006-delete_driver_settings.cpp-Get-rid-of-the-weak-alias.patch

File 0006-delete_driver_settings.cpp-Get-rid-of-the-weak-alias.patch, 1.1 KB (added by js, 7 years ago)
  • src/system/libroot/os/driver_settings.cpp

    From b723aaf0a774a0b74cf667ac94af53f1e03ee4f5 Mon Sep 17 00:00:00 2001
    From: Jonathan Schleifer <js@webkeks.org>
    Date: Tue, 17 Dec 2013 18:24:46 +0100
    Subject: [PATCH 6/6] delete_driver_settings.cpp: Get rid of the weak alias.
    
    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.
    ---
     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 5f7130d..b126996b 100644
    a b get_driver_settings(void *handle)  
    953953}
    954954
    955955
    956 // this creates an alias of the above function
    957 // unload_driver_settings() is the same as delete_driver_settings()
    958 extern "C" __typeof(unload_driver_settings) delete_driver_settings
    959     __attribute__((weak, alias ("unload_driver_settings")));
    960 
     956status_t
     957delete_driver_settings(void *_handle)
     958{
     959    return unload_driver_settings(_handle);
     960}