Linux dependencies
David Zeuthen
david at fubar.dk
Thu Jun 30 07:26:30 PDT 2005
On Thu, 2005-06-30 at 11:10 +0100, Alvaro Lopez Ortega wrote:
> David Zeuthen wrote:
>
> >> I have defined two new compilation variables for my tests: LINUX
> >> and SOLARIS, and I have used #ifdefs to implement the equivalent of
> >> the current functions for Solaris, and to inhibit the inclusion of
> >> some Linux headers: scsi/sg.h, linux/hdreg.h, etc. This isn't
> >> certainly the cleanest way to do it, so maybe we should think about
> >> to move that code in the OS dependent back-end. Thoughts?
> >
> > I think it might be helpful to specify exactly where and what the
> > problems are, cause I don't see anything OS-specific in hald/*.[ch]
> >
> > [davidz at daxter hald]$ pwd /home/davidz/Hacking/hal/hald
> > [davidz at daxter hald]$ grep linux *.[ch]
>
> Yeah, hald is compiling ok.
>
> When I wrote that message I was trying to compile drive helper
> library. Maybe the best approach for this case is to use ifdefs, don't
> you think?
Yea, using #ifdefs there sounds like a good idea. IIRC we only have
these includes to do the SCSI commands from user space to access e.g.
SCSI pages where we can retrieve the drive_id. If Solaris has other ways
of retrieving this info I guess you could use that too?
Cheers,
David
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list