chiark / gitweb /
add NETLINK define for the lazy distros
authorKay Sievers <kay.sievers@suse.de>
Thu, 4 Aug 2005 10:24:41 +0000 (12:24 +0200)
committerKay Sievers <kay.sievers@suse.de>
Thu, 4 Aug 2005 10:24:41 +0000 (12:24 +0200)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
udev_libc_wrapper.h
udevd.c
udevmonitor.c

index 4bb6891..a12af64 100644 (file)
 #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__
diff --git a/udevd.c b/udevd.c
index be401be..fa14c56 100644 (file)
--- a/udevd.c
+++ b/udevd.c
 #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;
index f4f28b1..51e8a2a 100644 (file)
@@ -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;