Hi,

        I got qmail 1.03 and qmail-ldap patch released 20021101, patched the qmail' 
sources. When I tryed to compile it I got this errors: 

maildir++.c: In function `quota_check':
maildir++.c:214: `NULL' undeclared (first use in this function)
maildir++.c:214: (Each undeclared identifier is reported only once
maildir++.c:214: for each function it appears in.)
maildir++.c: In function `quota_get':
maildir++.c:247: `NULL' undeclared (first use in this function)
maildir++.c: In function `quota_writesize':
maildir++.c:424: `NULL' undeclared (first use in this function)
make: *** [maildir++.o] Error 1

        This errors can be solved defining NULL. The proposed patch to the patch 
file attached.

-- 
Merlin, the Mage
themage.camelot.co.pt
--- qmail-ldap-1.03-20021101.patch	Fri Nov  1 18:51:20 2002
+++ qmail-ldap-1.03-20021101.themage.patch	Mon Nov  4 00:39:32 2002
@@ -7060,7 +7060,7 @@
 diff -uN qmail-1.03/maildir++.c qmail-ldap/maildir++.c
 --- qmail-1.03/maildir++.c	Thu Jan  1 01:00:00 1970
 +++ qmail-ldap/maildir++.c	Fri Nov  1 19:56:14 2002
-@@ -0,0 +1,675 @@
+@@ -0,0 +1,679 @@
 +#include <sys/types.h>
 +#include <sys/stat.h>
 +#include <fcntl.h>
@@ -7081,6 +7081,10 @@
 +#include "maildir++.h"
 +#include "alloc.h"
 +#include "byte.h"
++
++#ifndef NULL
++#define NULL (void*) 0
++#endif
 +
 +static void temp_nomem() { strerr_die1x(111,"Out of memory. (QUOTA #1.0.1)"); }
 +

Reply via email to