]> granicus.if.org Git - neomutt/commitdiff
build fix for old compilers
authorRichard Russon <rich@flatcap.org>
Sun, 10 Apr 2016 21:28:57 +0000 (22:28 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 12 Apr 2016 13:59:14 +0000 (14:59 +0100)
buffy.h
mx.h
sidebar.h

diff --git a/buffy.h b/buffy.h
index d69453c0ecfff1fc6b854a076a9c550eead007df..97e6912ed8574207e849b6c053616665b85a9a25 100644 (file)
--- a/buffy.h
+++ b/buffy.h
@@ -16,6 +16,9 @@
  *     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
+#ifndef _BUFFY_H
+#define _BUFFY_H
+
 /*parameter to mutt_parse_mailboxes*/
 #define M_MAILBOXES   1
 #define M_UNMAILBOXES 2 
@@ -64,3 +67,5 @@ void mutt_buffy_cleanup (const char *buf, struct stat *st);
 void mutt_buffy_setnotified (const char *path);
 
 void mh_buffy (BUFFY *);
+
+#endif /* _BUFFY_H */
diff --git a/mx.h b/mx.h
index 5d769e5c67656223aea0d574268587fd6f748648..a06b0102366a5470f1a31aa9f5b25644137a372c 100644 (file)
--- a/mx.h
+++ b/mx.h
@@ -26,6 +26,7 @@
 #define _MX_H
 
 #include "mailbox.h"
+#include "buffy.h"
 
 /* supported mailbox formats */
 enum
@@ -58,7 +59,6 @@ int mh_read_dir (CONTEXT *, const char *);
 int mh_sync_mailbox (CONTEXT *, int *);
 int mh_check_mailbox (CONTEXT *, int *);
 #ifdef USE_SIDEBAR
-typedef struct buffy_t BUFFY;
 void mh_buffy_update (BUFFY *mailbox);
 #endif
 int mh_check_empty (const char *);
index b203464f1be522c851603566783ca6a1c964b1d8..d56b02a233994b71f25fafae15f61e54a3417335 100644 (file)
--- a/sidebar.h
+++ b/sidebar.h
@@ -20,8 +20,8 @@
 #ifndef SIDEBAR_H
 #define SIDEBAR_H
 
-typedef struct _context CONTEXT;
-typedef struct buffy_t  BUFFY;
+#include "mutt.h"
+#include "buffy.h"
 
 void         sb_change_mailbox (int op);
 void         sb_draw (void);