[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-mailutils] Cross platform nitpicks
From: |
Linus Nordberg |
Subject: |
[bug-mailutils] Cross platform nitpicks |
Date: |
Sun, 01 Feb 2004 09:38:12 +0100 |
User-agent: |
Gnus/5.1004 (Gnus v5.10.4) Emacs/21.3 (berkeley-unix) |
Hi,
I've found a few missing includes and similar when building mailutils
from CVS on FreeBSD, see attached patch.
--
Linus
*** ChangeLog 27 Jan 2004 15:53:59 -0000 1.860
--- ChangeLog 31 Jan 2004 23:28:30 -0000
***************
*** 1,3 ****
--- 1,12 ----
+ 2004-02-01 Linus Nordberg <address@hidden>
+
+ * mailbox/pop/pop3_readline.c: Include sys/time.h.
+
+ * mailbox/maildir/mbox.c: Include limits.h.
+ (maildir_uniq): Use _POSIX_PATH_MAX instead of PATH_MAX.
+
+ * mailbox/file_stream.c: Include signal.h.
+
2004-01-27 Sergey Poznyakoff
* mailbox/smtp.c: Control the value
Index: mailbox/file_stream.c
===================================================================
RCS file: /cvsroot/mailutils/mailutils/mailbox/file_stream.c,v
retrieving revision 1.39
diff -c -p -r1.39 file_stream.c
*** mailbox/file_stream.c 30 Dec 2003 07:48:24 -0000 1.39
--- mailbox/file_stream.c 31 Jan 2004 23:28:30 -0000
***************
*** 30,35 ****
--- 30,36 ----
#include <sys/wait.h>
#include <fcntl.h>
#include <unistd.h>
+ #include <signal.h>
#include <syslog.h>
#include <mailutils/stream.h>
Index: mailbox/maildir/mbox.c
===================================================================
RCS file: /cvsroot/mailutils/mailutils/mailbox/maildir/mbox.c,v
retrieving revision 1.9
diff -c -p -r1.9 mbox.c
*** mailbox/maildir/mbox.c 22 Jan 2004 10:54:35 -0000 1.9
--- mailbox/maildir/mbox.c 31 Jan 2004 23:28:30 -0000
***************
*** 35,40 ****
--- 35,41 ----
#include <errno.h>
#include <ctype.h>
#include <dirent.h>
+ #include <limits.h>
#ifdef WITH_PTHREAD
# ifdef HAVE_PTHREAD_H
*************** mk_info_filename (char *directory, char
*** 253,259 ****
char *
maildir_uniq (struct _amd_data *amd, int fd)
{
! char buffer[PATH_MAX];
int ind = 0;
#define FMT(fmt,val) do {\
ind += snprintf(buffer+ind, sizeof buffer-ind, fmt, val); \
--- 254,260 ----
char *
maildir_uniq (struct _amd_data *amd, int fd)
{
! char buffer[_POSIX_PATH_MAX];
int ind = 0;
#define FMT(fmt,val) do {\
ind += snprintf(buffer+ind, sizeof buffer-ind, fmt, val); \
Index: mailbox/pop/pop3_readline.c
===================================================================
RCS file: /cvsroot/mailutils/mailutils/mailbox/pop/pop3_readline.c,v
retrieving revision 1.3
diff -c -p -r1.3 pop3_readline.c
*** mailbox/pop/pop3_readline.c 10 Oct 2003 23:53:02 -0000 1.3
--- mailbox/pop/pop3_readline.c 31 Jan 2004 23:28:30 -0000
***************
*** 24,29 ****
--- 24,30 ----
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
+ #include <sys/time.h>
#include <errno.h>
#include <mailutils/sys/pop3.h>
#include <mailutils/error.h>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-mailutils] Cross platform nitpicks,
Linus Nordberg <=