summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorRichard Yao <ryao@gentoo.org>2012-12-13 20:38:32 -0500
committerAnthony G. Basile <blueness@gentoo.org>2013-01-20 13:37:10 -0500
commit7c9974f31a10154b6c9c68b100dc62482c93a5b1 (patch)
treecabff00b42ed0bab0f98bdf9c8fb86be360d264d /src/udev
parentebf12c2f32cc22480e0102a4aadcd44487f55ad2 (diff)
Comment out sd_is_mq()
sd_is_mq() calls mq_getattr, which requires -lrt on systems using uclibc. Ordinarily, I would write an autotools check to handle this, but we do not use this code for anything, so I am commenting it out until a decision on the fate of this code is made. Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org> temp
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/sd-daemon.c2
-rw-r--r--src/udev/sd-daemon.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/sd-daemon.c b/src/udev/sd-daemon.c
index 4801d2cd18..d87afb97ef 100644
--- a/src/udev/sd-daemon.c
+++ b/src/udev/sd-daemon.c
@@ -386,6 +386,7 @@ _sd_export_ int sd_is_socket_unix(int fd, int type, int listening, const char *p
return 1;
}
+#if OBSOLETE
_sd_export_ int sd_is_mq(int fd, const char *path) {
#if !defined(__linux__)
return 0;
@@ -422,6 +423,7 @@ _sd_export_ int sd_is_mq(int fd, const char *path) {
return 1;
#endif
}
+#endif
_sd_export_ int sd_notify(int unset_environment, const char *state) {
#if defined(DISABLE_SYSTEMD) || !defined(__linux__) || !defined(SOCK_CLOEXEC)
diff --git a/src/udev/sd-daemon.h b/src/udev/sd-daemon.h
index fb7456d50f..7423b34438 100644
--- a/src/udev/sd-daemon.h
+++ b/src/udev/sd-daemon.h
@@ -187,7 +187,9 @@ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t
0 otherwise. If path is NULL a message queue name check is not
done. Returns a negative errno style error code on failure.
*/
+#if OBSOLETE
int sd_is_mq(int fd, const char *path);
+#endif
/*
Informs systemd about changed daemon state. This takes a number of