[Dovecot] Dovecot 2.1.16: Quota plugin compile fails: Solaris 10
Joseph Tam
jtam.home at gmail.com
Wed Apr 17 02:14:08 EEST 2013
Stephen Usher writes:
> quota-status.c: In function `main':
> quota-status.c:200: error: `optarg' undeclared (first use in this function)
> ...
> It seems that the following C standard header files need to be included in
> quota-status.c:
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <unistd.h>
It was mentioned a few weeks back (check the archives), but you only need
one of them (which may include the others). My patch to cope with this
--- a/src/plugins/quota/quota-status.c Sat Apr 13 02:18:40 2013
+++ b/src/plugins/quota/quota-status.c Sat Apr 13 02:18:56 2013
@@ -14,0 +14,1 @@
+#include <stdio.h>
This worked for me.
Joseph Tam <jtam.home at gmail.com>
More information about the dovecot
mailing list