This is needed on Solaris to get makedev()
#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;
#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;
# include <stdio.h>
# include <sys/mnttab.h> /* Solaris */
# include <sys/mntent.h>
+# include <sys/mkdev.h>
# define MOUNTPOINT_SOLARIS
#else
# define MOUNTPOINT_UNKNOWN