From: Aki Tuomi Date: Wed, 21 Jan 2026 11:34:02 +0000 (+0200) Subject: global: Include sys/mkdev.h when needed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c4df2f0d25e9fe6bc65ea0c9306b31312655f85;p=thirdparty%2Fdovecot%2Fcore.git global: Include sys/mkdev.h when needed This is needed on Solaris to get makedev() --- diff --git a/src/imap-hibernate/imap-hibernate-client.c b/src/imap-hibernate/imap-hibernate-client.c index b1c02db188..493f0cdf06 100644 --- a/src/imap-hibernate/imap-hibernate-client.c +++ b/src/imap-hibernate/imap-hibernate-client.c @@ -12,6 +12,10 @@ #include "imap-client.h" #include "imap-hibernate-client.h" +#if defined(HAVE_SYS_MKDEV_H) +# include /* Solaris */ +#endif + struct imap_hibernate_client { struct connection conn; struct imap_client *imap_client; diff --git a/src/imap/imap-master-client.c b/src/imap/imap-master-client.c index 9ae429e5cd..60024b7b7d 100644 --- a/src/imap/imap-master-client.c +++ b/src/imap/imap-master-client.c @@ -18,6 +18,10 @@ #include "imap-state.h" #include "imap-master-client.h" +#if defined(HAVE_SYS_MKDEV_H) +# include /* Solaris */ +#endif + struct imap_master_client { struct connection conn; bool imap_client_created; diff --git a/src/lib/mountpoint.c b/src/lib/mountpoint.c index 3d2150ec6e..816d0d6f54 100644 --- a/src/lib/mountpoint.c +++ b/src/lib/mountpoint.c @@ -27,6 +27,7 @@ # include # include /* Solaris */ # include +# include # define MOUNTPOINT_SOLARIS #else # define MOUNTPOINT_UNKNOWN