]> granicus.if.org Git - neomutt/commitdiff
fix: build of imap/auth_sasl.c
authorRichard Russon <rich@flatcap.org>
Sat, 15 Apr 2017 16:08:07 +0000 (17:08 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 17 Apr 2017 12:35:45 +0000 (13:35 +0100)
Header file <sasl/sasl.h> doesn't seem to include a header defining
'size_t'.  Make sure we include <stddef.h> before it.

Closes #525

.clang-format
imap/auth_sasl.c

index 9042ce512603097932f5b5b2b65ebe3bc283ab6b..a883ea4267d91af5d3227dc5a7523c6a6a1718a1 100644 (file)
@@ -10,8 +10,10 @@ BreakBeforeBraces: Allman
 IncludeCategories:
   - Regex:      '"config.h"'
     Priority:   -10
-  - Regex:      '<.*>'
+  - Regex:      '<stddef.h>'
     Priority:   -5
+  - Regex:      '<.*>'
+    Priority:   -4
   - Regex:      '"imap_private.h"'
     Priority:   -3
   - Regex:      '"mutt.h"'
index 81120c1962019307568a08af6cf1ed00297b1fe6..e1831579983c1e6fb26c488200d25a44b0170324 100644 (file)
@@ -18,6 +18,7 @@
 /* SASL login/authentication code */
 
 #include "config.h"
+#include <stddef.h>
 #include <sasl/sasl.h>
 #include <sasl/saslutil.h>
 #include "imap_private.h"