mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
add "static" back to the inline functions
<Keybuk> kay: udev git head ftbfs <Keybuk> udev-watch.o: In function `udev_selinux_init': <Keybuk> /../udev/udev.h:130: multiple definition of `udev_selinux_init'
This commit is contained in:
parent
d67e32aeb2
commit
4a74214a58
10
udev/udev.h
10
udev/udev.h
@ -127,11 +127,11 @@ int util_resolve_subsys_kernel(struct udev *udev, const char *string,
|
||||
|
||||
/* udev-selinux.c */
|
||||
#ifndef USE_SELINUX
|
||||
inline void udev_selinux_init(struct udev *udev) {}
|
||||
inline void udev_selinux_exit(struct udev *udev) {}
|
||||
inline void udev_selinux_lsetfilecon(struct udev *udev, const char *file, unsigned int mode) {}
|
||||
inline void udev_selinux_setfscreatecon(struct udev *udev, const char *file, unsigned int mode) {}
|
||||
inline void udev_selinux_resetfscreatecon(struct udev *udev) {}
|
||||
static inline void udev_selinux_init(struct udev *udev) {}
|
||||
static inline void udev_selinux_exit(struct udev *udev) {}
|
||||
static inline void udev_selinux_lsetfilecon(struct udev *udev, const char *file, unsigned int mode) {}
|
||||
static inline void udev_selinux_setfscreatecon(struct udev *udev, const char *file, unsigned int mode) {}
|
||||
static inline void udev_selinux_resetfscreatecon(struct udev *udev) {}
|
||||
#else
|
||||
void udev_selinux_init(struct udev *udev);
|
||||
void udev_selinux_exit(struct udev *udev);
|
||||
|
Loading…
Reference in New Issue
Block a user