[Commits] [SCM] claws branch, master, updated. 3.17.2-6-g37637fc

mones at claws-mail.org mones at claws-mail.org
Sat Dec 15 20:52:50 CET 2018


The branch, master has been updated
       via  37637fcdf9d3a0e62e3a8b8fb13fa58a8125719f (commit)
      from  319dee62ddeead3c7c05e46f95f8b2dd50de0c2c (commit)

Summary of changes:
 src/common/utils.h                          |    5 ++++-
 src/plugins/mailmbox/mailimf_types_helper.c |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 37637fcdf9d3a0e62e3a8b8fb13fa58a8125719f
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sat Dec 15 20:50:51 2018 +0100

    Fix build on Hurd
    
    Error was “mailimf_types_helper.c:1265:13: error: 'HOST_NAME_MAX'
    undeclared (first use in this function); did you mean 'NAME_MAX'?”
    
    Completes commit 3a482f4d25110e588ef58d5ee67fa4216a6b631d where this
    define was used first.

diff --git a/src/common/utils.h b/src/common/utils.h
index 445d1e3..40c3576 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -47,10 +47,13 @@
 #  include <wchar.h>
 #endif
 
-/* The Hurd doesn't have this limit */
+/* The Hurd doesn't have these limits */
 #ifndef PATH_MAX
   #define PATH_MAX 4196
 #endif
+#ifndef HOST_NAME_MAX
+  #define HOST_NAME_MAX 256
+#endif
 
 #ifdef G_OS_WIN32
 
diff --git a/src/plugins/mailmbox/mailimf_types_helper.c b/src/plugins/mailmbox/mailimf_types_helper.c
index 67e921f..eadb043 100644
--- a/src/plugins/mailmbox/mailimf_types_helper.c
+++ b/src/plugins/mailmbox/mailimf_types_helper.c
@@ -35,10 +35,10 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
-#include <limits.h>
 #include <errno.h>
 
 #include "mailimf.h"
+#include "utils.h"
 
 struct mailimf_mailbox_list *
 mailimf_mailbox_list_new_empty()

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list