#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 |
Description
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)
Change History (6)
by , 16 years ago
Attachment: | auich-forBeOS.diff added |
---|
comment:1 by , 16 years ago
Type: | bug → enhancement |
---|
comment:2 by , 16 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 @@ # define B_FIRST_REAL_TIME_PRIORITY B_REAL_TIME_DISPLAY_PRIORITY #endif +#ifndef B_SPINLOCK_INITIALIZER +# define B_SPINLOCK_INITIALIZER 0 +#endif + #if __GNUC__ # define _PRINTFLIKE(_format_, _args_) \ __attribute__((format(__printf__, _format_, _args_)))
comment:5 by , 13 years ago
Component: | Drivers/Audio → Drivers/Audio/auich |
---|
Note:
See TracTickets
for help on using tickets.
crude patch to compile auich driver in BeOS