summaryrefslogtreecommitdiff
path: root/src/udev/udev.h
diff options
context:
space:
mode:
authorRichard Yao <ryao@gentoo.org>2012-11-23 00:20:15 -0500
committerRichard Yao <ryao@cs.stonybrook.edu>2012-11-23 01:55:28 -0500
commit3bb4e05ce4a1c9ac1339b451c4c18cfef8bcbeb9 (patch)
tree2acd2e37eae53b80ed9b933fee254772246eb4ef /src/udev/udev.h
parentc4d1ce9b754e6eed60d2625cc4fff224898aa5d5 (diff)
Permit users to disable module loading support
Inspired by e30431623a7d871da123cc37055ac49abf2c20ea from systemd. Signed-off-by: Richard Yao <ryao@gentoo.org>
Diffstat (limited to 'src/udev/udev.h')
-rw-r--r--src/udev/udev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/udev.h b/src/udev/udev.h
index 82cd2ad6d0..4c2861009f 100644
--- a/src/udev/udev.h
+++ b/src/udev/udev.h
@@ -139,7 +139,9 @@ enum udev_builtin_cmd {
UDEV_BUILTIN_FIRMWARE,
UDEV_BUILTIN_HWDB,
UDEV_BUILTIN_INPUT_ID,
+#ifdef HAVE_MODULES
UDEV_BUILTIN_KMOD,
+#endif
UDEV_BUILTIN_NET_ID,
UDEV_BUILTIN_PATH_ID,
UDEV_BUILTIN_USB_ID,
@@ -162,7 +164,9 @@ extern const struct udev_builtin udev_builtin_btrfs;
extern const struct udev_builtin udev_builtin_firmware;
extern const struct udev_builtin udev_builtin_hwdb;
extern const struct udev_builtin udev_builtin_input_id;
+#ifdef HAVE_MODULES
extern const struct udev_builtin udev_builtin_kmod;
+#endif
extern const struct udev_builtin udev_builtin_net_id;
extern const struct udev_builtin udev_builtin_path_id;
extern const struct udev_builtin udev_builtin_usb_id;