From 766191919df43b68aa543a1c17cff895cf4c3653 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Thu, 31 May 2012 22:29:52 +0400 Subject: [PATCH] Added stub for get_nth_pci_info. BeRometer works now. Signed-off-by: Adrien Destugues This is a private API, but some apps used it anyway. We don't need a complete implementation to at least make BeRoMeter run. Fixes #5146. --- src/system/libroot/os/arch/x86/compatibility.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/system/libroot/os/arch/x86/compatibility.c b/src/system/libroot/os/arch/x86/compatibility.c index 6ba9fec106..291f35caa1 100644 --- a/src/system/libroot/os/arch/x86/compatibility.c +++ b/src/system/libroot/os/arch/x86/compatibility.c @@ -13,6 +13,7 @@ #include #include #include +#include #include @@ -27,6 +28,7 @@ int _kstatfs_(dev_t device, void *whatever, int fd, const char *path, fs_info *i int mount(const char *filesystem, const char *where, const char *device, ulong flags, void *parms, int len); int unmount(const char *path); +long get_nth_pci_info(long index, pci_info *info); int @@ -143,3 +145,8 @@ unmount(const char *path) return 0; } + +long get_nth_pci_info(long index,pci_info *info) +{ + return B_ERROR; +}