From 49937e2eb517f5a9ccc96a9919e7489cbe2ea999 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Fri, 11 Dec 2009 08:59:34 +0100 Subject: [PATCH] Detect disks when compiled for Haiku (free open source operating system compatible with BeOS) --- src/hdaccess.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hdaccess.c b/src/hdaccess.c index 622bdf1a..ffa180df 100644 --- a/src/hdaccess.c +++ b/src/hdaccess.c @@ -373,6 +373,12 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const arch_fnct } } } +#elif defined(__HAIKU__) + { +#ifdef HAVE_GLOB_H + list_disk=hd_glob_parse("/dev/disk/*/*/master/raw", list_disk, verbose, arch, testdisk_mode); +#endif + } #else { /* Need to check http://mattriffle.com/mirrors/freebsd/doc/en_US.ISO8859-1/books/handbook/disks-naming.html#DISK-NAMING-PHYSICAL-TABLE */