Don't build compatibility.c for non-gcc2 anymore.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31043 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f76e944e24
commit
58e784dfe6
@ -5,14 +5,22 @@ UsePrivateKernelHeaders ;
|
||||
# time.c!
|
||||
UsePrivateSystemHeaders ;
|
||||
|
||||
local compatibilitySources ;
|
||||
if $(HAIKU_GCC_VERSION[1]) = 2 {
|
||||
compatibilitySources =
|
||||
compatibility.c
|
||||
;
|
||||
}
|
||||
|
||||
MergeObject os_arch_$(TARGET_ARCH).o :
|
||||
atomic.S
|
||||
byteorder.S
|
||||
compatibility.c
|
||||
get_stack_frame.S
|
||||
system_info.c
|
||||
system_time_asm.S
|
||||
thread.c
|
||||
time.c
|
||||
tls.c
|
||||
|
||||
$(compatibilitySources)
|
||||
;
|
||||
|
@ -3,22 +3,17 @@
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
// TODO: temporary measurement to fix the build with GCC 4 - in the end, these
|
||||
// private syscalls shouldn't be used anywhere in the Haiku tree, at the very
|
||||
// least they should only be used when compiling for GCC 2.95.3, though.
|
||||
#if __GNUC__ < 30
|
||||
|
||||
//! This file includes some known R5 syscalls
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <SupportDefs.h>
|
||||
#include <fs_info.h>
|
||||
|
||||
#include <syscalls.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
||||
int _kset_mon_limit_(int num);
|
||||
int _kset_fd_limit_(int num);
|
||||
@ -103,6 +98,3 @@ _kstatfs_(dev_t device, void *whatever, int fd, const char *path, fs_info *info)
|
||||
|
||||
return fs_stat_dev(device, info);
|
||||
}
|
||||
|
||||
|
||||
#endif // __GNUC__ < 3
|
||||
|
Loading…
Reference in New Issue
Block a user