summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
Diffstat (limited to 'udev')
-rw-r--r--udev/lib/Makefile.am3
-rw-r--r--udev/lib/libudev.h5
2 files changed, 7 insertions, 1 deletions
diff --git a/udev/lib/Makefile.am b/udev/lib/Makefile.am
index 430472735b..dadcd55f0f 100644
--- a/udev/lib/Makefile.am
+++ b/udev/lib/Makefile.am
@@ -1,6 +1,7 @@
AM_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
- -DUDEV_PREFIX=\""$(udev_prefix)"\"
+ -DUDEV_PREFIX=\""$(udev_prefix)"\" \
+ -DLIBUDEV_COMPILATION
noinst_PROGRAMS = \
test-libudev
diff --git a/udev/lib/libudev.h b/udev/lib/libudev.h
index 1eb3745e6f..cd366c7dfc 100644
--- a/udev/lib/libudev.h
+++ b/udev/lib/libudev.h
@@ -20,6 +20,11 @@
#ifndef _LIBUDEV_H_
#define _LIBUDEV_H_
+/* this will stay as long as the DeviceKit integration of udev is work in progress */
+#if !defined LIBUDEV_COMPILATION && !defined LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
+#error "#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to use this experimental library version"
+#endif
+
struct udev;
struct udev_device;
struct udev_monitor;