Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
noinst_LTLIBRARIES = libblkid_topology.la
libblkid_topology_la_SOURCES = topology.c \
- topology.h \
+ topology.h
+
+if LINUX
+libblkid_topology_la_SOURCES += sysfs.c \
+ dm.c \
+ lvm.c \
ioctl.c \
- sysfs.c \
md.c \
- dm.c \
- evms.c \
- lvm.c
+ evms.c
+endif
*/
static const struct blkid_idinfo *idinfos[] =
{
+#ifdef __linux__
&ioctl_tp_idinfo,
&sysfs_tp_idinfo,
&md_tp_idinfo,
&dm_tp_idinfo,
&lvm_tp_idinfo,
&evms_tp_idinfo
+#endif
};
/*
* topology probers
*/
+#ifdef __linux__
extern const struct blkid_idinfo ioctl_tp_idinfo;
-extern const struct blkid_idinfo sysfs_tp_idinfo;
extern const struct blkid_idinfo md_tp_idinfo;
-extern const struct blkid_idinfo dm_tp_idinfo;
extern const struct blkid_idinfo evms_tp_idinfo;
+extern const struct blkid_idinfo sysfs_tp_idinfo;
+extern const struct blkid_idinfo dm_tp_idinfo;
extern const struct blkid_idinfo lvm_tp_idinfo;
+#endif
#endif /* BLKID_TOPOLOGY_H */