Incidencia #37530

Plugin does not build with dovecot v2.2.26

Abrir Fecha: 2017-09-23 04:48 Última actualización: 2017-09-23 04:48

Informador:
(Anónimo)
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
7
Gravedad:
7
Resolución:
Ninguno
Fichero:
Ninguno

Details

Fix timeout_add for dovecot 2.2.26 and later.

Dovecot	commit dfa23b2ddc43f323112225facf7cd7191e62e02c	changed	the timeout
function for v2.2.26 and later to also contain the filename.

Add the __FILE__ macro to make it work.

Signoff-By: Andreas Thienemann <andreas@bawue.net>

--- dovecot2-drac/drac-plugin.c.orig    2017-09-22 19:43:25.842898210 +0000
+++ dovecot2-drac/drac-plugin.c 2017-09-22 19:42:40.186347078 +0000
@@ -98,7 +98,7 @@
         drac_timeout(NULL);
 #undef timeout_add
 #define timeout_add(msecs, callback, context) \
-        timeout_add(msecs, __LINE__, callback, context)
+        timeout_add(msecs, __FILE__, __LINE__, callback, context)
         to_drac = timeout_add(1000*dractout, drac_timeout, NULL);
     } else {
         i_error("%s: Only IPv4 and IPv6 addresses are supported", __FUNCTION__);

Ticket History (1/1 Histories)

2017-09-23 04:48 Updated by: None
  • New Ticket "Plugin does not build with dovecot v2.2.26" created

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Entrar