diff options
-rw-r--r-- | udev_libc_wrapper.h | 4 | ||||
-rw-r--r-- | udevd.c | 4 | ||||
-rw-r--r-- | udevmonitor.c | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/udev_libc_wrapper.h b/udev_libc_wrapper.h index 4bb68913a9..a12af64c24 100644 --- a/udev_libc_wrapper.h +++ b/udev_libc_wrapper.h @@ -42,6 +42,10 @@ #define __FD_ZERO(set) ((void) memset ((void*) (set), 0, sizeof (fd_set))) #endif +#ifndef NETLINK_KOBJECT_UEVENT +#define NETLINK_KOBJECT_UEVENT 15 +#endif + #include <string.h> #ifdef __KLIBC__ @@ -49,10 +49,6 @@ #include "udevd.h" #include "logging.h" -#ifndef NETLINK_KOBJECT_UEVENT -#define NETLINK_KOBJECT_UEVENT 15 -#endif - /* global variables*/ static int udevd_sock; static int uevent_netlink_sock; diff --git a/udevmonitor.c b/udevmonitor.c index f4f28b1659..51e8a2ab0b 100644 --- a/udevmonitor.c +++ b/udevmonitor.c @@ -33,6 +33,7 @@ #include "udev.h" #include "udevd.h" +#include "udev_libc_wrapper.h" static int uevent_netlink_sock; static int udev_monitor_sock; |