linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev - changing libsysfs header file location
@ 2004-02-17 21:32 Patrick Mansfield
  2004-02-18  0:04 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Mansfield @ 2004-02-17 21:32 UTC (permalink / raw)
  To: linux-hotplug

Hi Greg -

The location of the libsysfs headers is different when building with udev
versus building against the installed sysfsutils.

Can you bk mv the libsysfs header files to the same subdirectory as seen
after installing sysfsutil? And then apply patch being sent as a followup
email.

That is, move the headers located under udev libsysfs to libsysfs/sysfs.

This would avoid problems with extras programs that want to build with and
without udev, for example scsi_id ;-)

To clarify here's the current scsi_id hack, it will not always work right
when building udev without klibc, as it will either pick up the locally
installed versions of /usr/include/sysfs/libsysfs.h, or if sysfsutils is
not installed fail compilation:

#ifdef __KLIBC__
/*
 * Assume built under udev with KLIBC
*/
#include <libsysfs.h>
#else
#include <sysfs/libsysfs.h>
#endif

-- Patrick Mansfield


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-18  0:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-17 21:32 udev - changing libsysfs header file location Patrick Mansfield
2004-02-18  0:04 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).