mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 06:25:25 +03:00
add NETLINK define for the lazy distros
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
parent
cfb7ac2b5b
commit
47e353f9b9
@ -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__
|
||||
|
4
udevd.c
4
udevd.c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user