]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
controller/supervisord/plugin/notifymodule.c: platform portable
authorAleš Mrázek <ales.mrazek@nic.cz>
Wed, 15 Oct 2025 09:47:43 +0000 (11:47 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Wed, 26 Nov 2025 17:28:05 +0000 (18:28 +0100)
python/knot_resolver/controller/supervisord/plugin/notifymodule.c

index 7a1c5852c6a54cf36c023d6bbeca9b08d176dcf4..a7e6361e89fcd62f2a8fea88c74518fac298263d 100644 (file)
@@ -20,6 +20,8 @@
 #define MODULE_NAME "notify"
 #define RECEIVE_BUFFER_SIZE 2048
 
+#if __linux__
+
 static PyObject *NotifySocketError;
 
 static PyObject *init_control_socket(PyObject *self, PyObject *args)
@@ -167,3 +169,5 @@ PyMODINIT_FUNC PyInit_notify(void)
 
        return m;
 }
+
+#endif