sg.h appears to have renamed SG_FLAG_LUN_INHIBIT to SG_FLAG_UNUSED_LUN_INHIBIT (or vice versa, I can't find a decent changelog). A quick google codesearch shows many projects handling this, attaching a patch to do the same for HAL.
Created attachment 10981 [details] [review] Patch
commit 72510af187df46dfc2cc268d51ca2d47f4bb3b89 Author: Frederic Crozat <fcrozat@mandriva.com> Date: Tue Aug 28 11:10:17 2007 +0200 handle renaming of SG_FLAG_LUN_INHIBIT in sg.h > while fixing sg_ui.sbp is relatively easy (just add cast), what > SG_FLAG_LUN_INHIBIT is supposed to do and what should be used instead? I've attached an improved patch (inspired from k3b).
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.