1
0
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:
Kay Sievers 2009-05-07 13:24:40 +02:00
parent d67e32aeb2
commit 4a74214a58

View File

@ -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);