diff --git a/src/add-ons/kernel/file_systems/userlandfs/server/Jamfile b/src/add-ons/kernel/file_systems/userlandfs/server/Jamfile
index 3654592..b389035 100644
a
|
b
|
DEFINES += USER=1 ;
|
17 | 17 | DEFINES += DEBUG_APP="\\\"userlandfs_server\\\"" ; |
18 | 18 | DEFINES += BUILDING_USERLAND_FS_SERVER=1 ; |
19 | 19 | |
| 20 | if $(DEBUG) > 0 { |
| 21 | SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src tests add-ons kernel |
| 22 | kernelland_emu ] ; |
| 23 | DEBUG_FILES += debug.cpp lock.cpp misc.cpp scheduler.cpp ; |
| 24 | } |
| 25 | |
20 | 26 | Application userlandfs_server |
21 | 27 | : |
22 | 28 | AreaSupport.cpp |
… |
… |
Application userlandfs_server
|
42 | 48 | UserlandRequestHandler.cpp |
43 | 49 | Volume.cpp |
44 | 50 | |
| 51 | $(DEBUG_FILES) |
45 | 52 | : |
46 | 53 | be |
47 | 54 | $(TARGET_LIBSUPC++) |
diff --git a/src/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.cpp b/src/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.cpp
index fb19eb7..5e180f7 100644
a
|
b
|
|
22 | 22 | #include "SingleReplyRequestHandler.h" |
23 | 23 | #include "Volume.h" |
24 | 24 | |
| 25 | // When GCC 2 compiles inline functions in debug mode, it doesn't throw away |
| 26 | // the generated non-inlined functions, if they aren't used. So we have to |
| 27 | // provide the dependencies referenced by inline functions in private kernel |
| 28 | // headers. |
| 29 | #if __GNUC__ == 2 && DEBUG |
| 30 | #include <cpu.h> |
| 31 | #include <smp.h> |
| 32 | |
| 33 | #undef acquire_spinlock |
| 34 | |
| 35 | cpu_ent gCPU[1]; |
| 36 | |
| 37 | |
| 38 | int32 |
| 39 | smp_get_current_cpu(void) |
| 40 | { |
| 41 | return 0; |
| 42 | } |
| 43 | |
| 44 | |
| 45 | void |
| 46 | acquire_spinlock(spinlock* lock) |
| 47 | { } |
| 48 | |
| 49 | |
| 50 | #endif // __GNUC__ == 2 |
25 | 51 | |
26 | 52 | // constructor |
27 | 53 | UserlandRequestHandler::UserlandRequestHandler(FileSystem* fileSystem) |
diff --git a/src/add-ons/kernel/file_systems/userlandfs/server/haiku/haiku_kernel_emu.cpp b/src/add-ons/kernel/file_systems/userlandfs/server/haiku/haiku_kernel_emu.cpp
index d9b1a14..b4014c7 100644
a
|
b
|
|
33 | 33 | // the generated non-inlined functions, if they aren't used. So we have to |
34 | 34 | // provide the dependencies referenced by inline functions in private kernel |
35 | 35 | // headers. |
36 | | #if __GNUC__ == 2 |
| 36 | #if __GNUC__ == 2 && DEBUG |
37 | 37 | |
38 | 38 | #include <cpu.h> |
39 | 39 | #include <smp.h> |
40 | 40 | |
| 41 | #undef acquire_spinlock |
| 42 | |
41 | 43 | cpu_ent gCPU[1]; |
42 | 44 | |
43 | 45 | |
… |
… |
smp_get_current_cpu(void)
|
48 | 50 | } |
49 | 51 | |
50 | 52 | |
| 53 | void |
| 54 | acquire_spinlock(spinlock* lock) |
| 55 | { } |
| 56 | |
| 57 | |
51 | 58 | #endif // __GNUC__ == 2 |
52 | 59 | |
53 | 60 | |