Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#3405 closed enhancement (fixed)

allow auich driver to compile for BeOS

Reported by: mmadia Owned by: korli
Priority: normal Milestone: R1
Component: Drivers/Audio/auich Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All


Basic and functioning patch to allow auich to compile in BeOS (bone). ear

This patch is probably incorrect on many levels, but it does allow the driver to work in BeOS.

As a note in util.c?rev=25752,

* Added macros for spinlock initialization and access and changed
    code using spinlocks accordingly. This breaks compilation for BeOS --
    the macros should be defined in the respective compatibility wrappers.

Attachments (1)

auich-forBeOS.diff (339 bytes ) - added by mmadia 11 years ago.
crude patch to compile auich driver in BeOS

Download all attachments as: .zip

Change History (6)

by mmadia, 11 years ago

Attachment: auich-forBeOS.diff added

crude patch to compile auich driver in BeOS

comment:1 by anevilyak, 11 years ago

Type: bugenhancement

comment:2 by korli, 11 years ago

Could you try instead something like this ?

Index: headers/build/HaikuBuildCompatibility.h
--- headers/build/HaikuBuildCompatibility.h     (révision 29133)
+++ headers/build/HaikuBuildCompatibility.h     (copie de travail)
@@ -61,6 +61,10 @@

 #if __GNUC__
 #      define _PRINTFLIKE(_format_, _args_) \
                __attribute__((format(__printf__, _format_, _args_)))

comment:3 by mmadia, 11 years ago

Your version of the patch works. Tested on rev29170

comment:4 by korli, 11 years ago

Resolution: fixed
Status: newclosed

committed in hrev29173

comment:5 by diver, 9 years ago

Component: Drivers/AudioDrivers/Audio/auich
Note: See TracTickets for help on using tickets.