Here's a patch for elm.  struct timeb / ftime aren't used so let's kill
all references to sys/timeb.h.

OK?

Index: patches/patch-Configure
===================================================================
RCS file: /cvs/ports/mail/elm/patches/patch-Configure,v
retrieving revision 1.1
diff -u -p -r1.1 patch-Configure
--- patches/patch-Configure     13 Feb 2001 13:02:55 -0000      1.1
+++ patches/patch-Configure     7 Dec 2013 23:15:30 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-Configure,v 1.1 2001/02/13 13:02:55 naddy Exp $
---- Configure.orig     Tue Feb 13 13:39:54 2001
-+++ Configure  Tue Feb 13 13:40:18 2001
+--- Configure.orig     Tue Nov  9 20:43:04 1999
++++ Configure  Sun Dec  8 00:09:33 2013
 @@ -15,10 +15,10 @@
  
PATH=".:$PATH:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin"
  export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed 
myself to sh."; sh $0; kill $$)
@@ -16,3 +16,13 @@ $OpenBSD: patch-Configure,v 1.1 2001/02/
  
  (alias) >/dev/null 2>&1 && \
      echo "(I see you are using the Korn shell.  Some ksh's blow up on 
Configure," && \
+@@ -4402,9 +4402,6 @@ case "$d_utimbuf" in
+ #endif
+ #ifdef I_SYSTIME
+ #  include <sys/time.h>
+-#endif
+-#ifdef BSD_TYPE
+-#  include <sys/timeb.h>
+ #endif
+ #ifdef I_UTIME
+ #  include <utime.h>
Index: patches/patch-src_date_c
===================================================================
RCS file: patches/patch-src_date_c
diff -N patches/patch-src_date_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_date_c    7 Dec 2013 23:15:30 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- src/date.c.orig    Sat Dec  7 23:47:36 2013
++++ src/date.c Sat Dec  7 23:47:49 2013
+@@ -19,10 +19,6 @@ static char rcsid[] = "@(#)$Id: date.c,v 1.4.4.1 1999/
+ #include "headers.h"
+ #include "me.h"
+ 
+-#ifdef BSD_TYPE
+-#  include <sys/timeb.h>
+-#endif
+-
+ #ifndef       _POSIX_SOURCE
+ extern struct tm *localtime();
+ extern struct tm *gmtime();
Index: patches/patch-src_elm_c
===================================================================
RCS file: patches/patch-src_elm_c
diff -N patches/patch-src_elm_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_elm_c     7 Dec 2013 23:15:30 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- src/elm.c.orig     Sat Dec  7 23:51:21 2013
++++ src/elm.c  Sat Dec  7 23:51:36 2013
+@@ -21,10 +21,6 @@ static char rcsid[] = "@(#)$Id: elm.c,v 1.12.2.1 1999/
+ #include "s_elm.h"
+ #include "elmlib.h"
+ 
+-#ifdef BSD_TYPE
+-#  include <sys/timeb.h>
+-#endif
+-
+ #include "mime.h"
+ #include "me.h"
+ 
Index: patches/patch-utils_newmail_c
===================================================================
RCS file: /cvs/ports/mail/elm/patches/patch-utils_newmail_c,v
retrieving revision 1.1
diff -u -p -r1.1 patch-utils_newmail_c
--- patches/patch-utils_newmail_c       26 Oct 2007 21:50:35 -0000      1.1
+++ patches/patch-utils_newmail_c       7 Dec 2013 23:15:30 -0000
@@ -1,7 +1,18 @@
 $OpenBSD: patch-utils_newmail_c,v 1.1 2007/10/26 21:50:35 ajacoutot Exp $
 --- utils/newmail.c.orig       Tue Nov  9 20:42:42 1999
-+++ utils/newmail.c    Fri Oct 26 23:46:56 2007
-@@ -144,7 +144,7 @@ int  parent_pid;           /* See if sucide should be 
attempt  
++++ utils/newmail.c    Sat Dec  7 23:55:41 2013
+@@ -66,10 +66,6 @@ static char rcsid[] = "@(#)$Id: newmail.c,v 1.6.2.1 19
+ #endif
+ #include <sys/stat.h>
+ 
+-#ifdef BSD_TYPE
+-#  include <sys/timeb.h>
+-#endif
+-
+ #ifdef I_UTIME
+ #  include <utime.h>
+ #endif
+@@ -144,7 +140,7 @@ int  parent_pid;           /* See if sucide should be 
attempt  
  extern int errno;
  
  
@@ -10,7 +21,7 @@ $OpenBSD: patch-utils_newmail_c,v 1.1 20
          time_t utime_buffer[2];         /* utime command */
  
  #else
-@@ -329,7 +329,7 @@ char *argv[];
+@@ -329,7 +325,7 @@ char *argv[];
              /* try to set the file access times back, ignore
                 failures */
  
@@ -19,7 +30,7 @@ $OpenBSD: patch-utils_newmail_c,v 1.1 20
              utime(cur_folder->foldername, utime_buffer);
  #else
                utime(cur_folder->foldername, &utime_buffer);
-@@ -697,7 +697,7 @@ char *name;
+@@ -697,7 +693,7 @@ char *name;
        
        /* retain the access times for later use */
  


Reply via email to