[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libcdio-devel] problems with libcdio on openbsd (and probably netbs
From: |
Edd Barrett |
Subject: |
Re: [Libcdio-devel] problems with libcdio on openbsd (and probably netbsd too) |
Date: |
Mon, 28 May 2018 11:45:07 +0100 |
User-agent: |
Mutt/1.10.0 (2018-05-17) |
On Sun, May 27, 2018 at 02:22:48PM +0200, Robert Kausch wrote:
> RAW_PART is always 2, thus 'c', in OpenBSD, but it's architecture dependent,
> 2 or 3, in NetBSD [1]. So it would be a good idea to use RAW_PART instead of
> a fixed 'c' or 'd' when looking for devices.
Thanks for pointing this out. This seems a more principled way than
I was going to do:
+#ifdef __OpenBSD__
+ char *partitions = "c";
+#else
+ char *partitions = "cd";
+#endif
--
Best Regards
Edd Barrett
http://www.theunixzoo.co.uk