summaryrefslogtreecommitdiffstats
path: root/mail-client/mailx/files
diff options
context:
space:
mode:
Diffstat (limited to 'mail-client/mailx/files')
-rw-r--r--mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch36
-rw-r--r--mail-client/mailx/files/mailx-ds-rt.patch12
2 files changed, 48 insertions, 0 deletions
diff --git a/mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch b/mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch
new file mode 100644
index 0000000..7af8128
--- /dev/null
+++ b/mail-client/mailx/files/mailx-8.1.2.20050715-offsetof.patch
@@ -0,0 +1,36 @@
+diff -r -u mailx-8.1.2-0.20050715cvs.orig.orig/def.h mailx-8.1.2-0.20050715cvs.orig/def.h
+--- mailx-8.1.2-0.20050715cvs.orig.orig/def.h 2003-10-14 21:50:20.000000000 +0900
++++ mailx-8.1.2-0.20050715cvs.orig/def.h 2010-03-31 10:29:37.000000000 +0900
+@@ -97,7 +97,7 @@
+ * Given a file address, determine the block number it represents.
+ */
+ #define blockof(off) ((int) ((off) / 4096))
+-#define offsetof(off) ((int) ((off) % 4096))
++#define offsetofmailx(off) ((int) ((off) % 4096))
+ #define positionof(block, offset) ((off_t)(block) * 4096 + (offset))
+
+ /*
+diff -r -u mailx-8.1.2-0.20050715cvs.orig.orig/edit.c mailx-8.1.2-0.20050715cvs.orig/edit.c
+--- mailx-8.1.2-0.20050715cvs.orig.orig/edit.c 2004-05-25 01:34:32.000000000 +0900
++++ mailx-8.1.2-0.20050715cvs.orig/edit.c 2010-03-31 10:41:28.000000000 +0900
+@@ -111,7 +111,7 @@
+ (void)fseek(otf, 0L, 2);
+ size = ftell(otf);
+ mp->m_block = blockof(size);
+- mp->m_offset = offsetof(size);
++ mp->m_offset = offsetofmailx(size);
+ mp->m_size = fsize(fp);
+ mp->m_lines = 0;
+ mp->m_flag |= MODIFY;
+diff -r -u mailx-8.1.2-0.20050715cvs.orig.orig/fio.c mailx-8.1.2-0.20050715cvs.orig/fio.c
+--- mailx-8.1.2-0.20050715cvs.orig.orig/fio.c 2004-05-25 01:34:32.000000000 +0900
++++ mailx-8.1.2-0.20050715cvs.orig/fio.c 2010-03-31 10:29:28.000000000 +0900
+@@ -139,7 +139,7 @@
+ this.m_size = 0;
+ this.m_lines = 0;
+ this.m_block = blockof(offset);
+- this.m_offset = offsetof(offset);
++ this.m_offset = offsetofmailx(offset);
+ inhead = 1;
+ } else if (linebuf[0] == 0) {
+ inhead = 0;
diff --git a/mail-client/mailx/files/mailx-ds-rt.patch b/mail-client/mailx/files/mailx-ds-rt.patch
new file mode 100644
index 0000000..07d49d7
--- /dev/null
+++ b/mail-client/mailx/files/mailx-ds-rt.patch
@@ -0,0 +1,12 @@
+diff -dPNur bsd-mailx-8.1.2-0.20160123cvs.orig/Makefile bsd-mailx-8.1.2-0.20160123cvs.orig-ds/Makefile
+--- bsd-mailx-8.1.2-0.20160123cvs.orig/Makefile 2018-04-10 22:47:18.000000000 +0000
++++ bsd-mailx-8.1.2-0.20160123cvs.orig-ds/Makefile 2018-04-10 22:49:25.000000000 +0000
+@@ -10,7 +10,7 @@
+ popen.c quit.c send.c strings.c temp.c tty.c vars.c
+
+ OBJS=$(SRCS:%.c=%.o)
+-LIBS=-llockfile -lbsd
++LIBS=-llockfile -lbsd -lrt
+
+ SFILES= mail.help mail.tildehelp
+ EFILES= mail.rc