]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
global: Include sys/mkdev.h when needed
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 21 Jan 2026 11:34:02 +0000 (13:34 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 27 Jan 2026 11:37:38 +0000 (13:37 +0200)
This is needed on Solaris to get makedev()

src/imap-hibernate/imap-hibernate-client.c
src/imap/imap-master-client.c
src/lib/mountpoint.c

index b1c02db1880a1a14e2da807c4aa1632aa1e48d96..493f0cdf062863713ba7b1dbbbfc830fc424209a 100644 (file)
 #include "imap-client.h"
 #include "imap-hibernate-client.h"
 
+#if defined(HAVE_SYS_MKDEV_H)
+#  include <sys/mkdev.h> /* Solaris */
+#endif
+
 struct imap_hibernate_client {
        struct connection conn;
        struct imap_client *imap_client;
index 9ae429e5cd5f0a8465e410e1bcaa0146805288df..60024b7b7d2c3f8b2575ec0b47bbcad13d26f5c7 100644 (file)
 #include "imap-state.h"
 #include "imap-master-client.h"
 
+#if defined(HAVE_SYS_MKDEV_H)
+#  include <sys/mkdev.h> /* Solaris */
+#endif
+
 struct imap_master_client {
        struct connection conn;
        bool imap_client_created;
index 3d2150ec6e94eff4181e714ec30e5254d7fa030c..816d0d6f54935b2eb5a8bf8d5f07f4899482c526 100644 (file)
@@ -27,6 +27,7 @@
 #  include <stdio.h>
 #  include <sys/mnttab.h> /* Solaris */
 #  include <sys/mntent.h>
+#  include <sys/mkdev.h>
 #  define MOUNTPOINT_SOLARIS
 #else
 #  define MOUNTPOINT_UNKNOWN