The patch below is something I carry locally since very long time, I forgot when I used it first. It were rejected when I first posted it to postfix-users, but without it building shared libpostfix is not possible due to wrongly placed variable. FWIW.
/mjt
Well, I don't know where this should go. Wietse probably right that handling of main.cf's parameters should be reorganized... This little diff against postfix-20010128 moves var_command_maxtime to global/pipe_command.c -- just to allow me to build shared library. --- postfix-20010128/src/global/pipe_command.c.cmdmaxtime Sat Dec 9 03:10:58 2000 +++ postfix-20010128/src/global/pipe_command.c Tue Jan 30 21:35:11 2001 @@ -138,4 +138,6 @@ #include <sys_exits.h> +int var_command_maxtime; + /* Application-specific. */ --- postfix-20010128/src/local/local.c.cmdmaxtime Sun Jan 28 19:48:27 2001 +++ postfix-20010128/src/local/local.c Tue Jan 30 21:35:39 2001 @@ -438,5 +438,4 @@ char *var_alias_maps; int var_dup_filter_limit; -int var_command_maxtime; char *var_home_mailbox; char *var_mailbox_command; --- postfix-20010128/src/pipe/pipe.c.cmdmaxtime Fri Dec 15 19:07:42 2000 +++ postfix-20010128/src/pipe/pipe.c Tue Jan 30 21:36:06 2001 @@ -250,1 +250,0 @@ -int var_command_maxtime; /* system-wide */ --- postfix-20010128/src/spawn/spawn.c.cmdmaxtime Fri Dec 15 19:09:16 2000 +++ postfix-20010128/src/spawn/spawn.c Tue Jan 30 21:36:31 2001 @@ -122,10 +122,4 @@ /* - * Tunable parameters. Values are taken from the config file, after - * prepending the service name to _name, and so on. - */ -int var_command_maxtime; /* system-wide */ - - /* * For convenience. Instead of passing around lists of parameters, bundle * them up in convenient structures.
