]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: systemd: Define MSG_NOSIGNAL if needed
authorAndrea Bolognani <abologna@redhat.com>
Wed, 20 Jul 2016 13:46:56 +0000 (15:46 +0200)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 26 Jul 2016 01:51:39 +0000 (04:51 +0300)
The symbol being missing has been reported as causing build
failures on OS X. If it's not already defined, define it to
zero so that it won't have any effect.

src/util/virsystemd.c

index 969cd681b158cf35bccad097d35833d1f256afe0..7d6985b0e353e43894deda31d8f861b5d493c8cc 100644 (file)
 
 VIR_LOG_INIT("util.systemd");
 
+#ifndef MSG_NOSIGNAL
+# define MSG_NOSIGNAL 0
+#endif
+
 static void virSystemdEscapeName(virBufferPtr buf,
                                  const char *name)
 {