$NetBSD: patch-aq,v 1.2 2011/04/14 02:18:27 obache Exp $ --- imap/sync_client.c.orig 2011-04-13 14:35:22.000000000 +0000 +++ imap/sync_client.c @@ -93,6 +93,10 @@ #include "signals.h" #include "cyrusdb.h" +#ifndef SOL_TCP +#define SOL_TCP IPPROTO_TCP +#endif + /* signal to config.c */ const int config_need_data = CONFIG_NEED_PARTITION_DATA;