Skip to content

Instantly share code, notes, and snippets.

Created August 12, 2014 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9f547a9118d779333ccf to your computer and use it in GitHub Desktop.
Save anonymous/9f547a9118d779333ccf to your computer and use it in GitHub Desktop.
gudev-sd_is_mq.patch
--- udev-182/src/sd-daemon.c.orig 2014-08-12 12:09:49.956784083 +0300
+++ udev-182/src/sd-daemon.c 2014-08-12 12:11:04.341268663 +0300
@@ -382,6 +382,7 @@
return 1;
}
+#if OBSOLETE
_sd_export_ int sd_is_mq(int fd, const char *path) {
#if !defined(__linux__)
return 0;
@@ -418,6 +419,7 @@
return 1;
#endif
}
+#endif
_sd_export_ int sd_notify(int unset_environment, const char *state) {
#if defined(DISABLE_SYSTEMD) || !defined(__linux__) || !defined(SOCK_CLOEXEC)
--- udev-182/src/sd-daemon.h.orig 2014-08-12 12:09:53.636829326 +0300
+++ udev-182/src/sd-daemon.h 2014-08-12 12:11:25.891584660 +0300
@@ -187,7 +187,9 @@
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment