pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/mush Include time.h on Linux to use "struct tm".



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e0f3a2e7de3
branches:  trunk
changeset: 494729:5e0f3a2e7de3
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun May 29 05:33:42 2005 +0000

description:
Include time.h on Linux to use "struct tm".

diffstat:

 mail/mush/distinfo         |   4 ++--
 mail/mush/patches/patch-ad |  41 +++++++++++++++++++++++++----------------
 2 files changed, 27 insertions(+), 18 deletions(-)

diffs (161 lines):

diff -r 41c0f0d137b2 -r 5e0f3a2e7de3 mail/mush/distinfo
--- a/mail/mush/distinfo        Sun May 29 05:16:27 2005 +0000
+++ b/mail/mush/distinfo        Sun May 29 05:33:42 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2005/02/24 09:59:25 agc Exp $
+$NetBSD: distinfo,v 1.6 2005/05/29 05:33:42 minskim Exp $
 
 SHA1 (mush/mush-7.2.5.tar.Z) = 1b9b54b368b9a748401b1baeb3b3eba5a9ed2c03
 RMD160 (mush/mush-7.2.5.tar.Z) = 32e010f544f79cc1a0f899d722d465975d552a4e
@@ -27,7 +27,7 @@
 SHA1 (patch-aa) = dd38a31a1e048471013df7a167fdf5582445ce2b
 SHA1 (patch-ab) = e1482baca81fe09889f8316d96f9afb1a7a6bbb0
 SHA1 (patch-ac) = 963ce2cc9e30a2cd5e7e63edbe09692a880d8d5b
-SHA1 (patch-ad) = 2c2a20548c7faefb8c6aba91c0f4d75d6de9557d
+SHA1 (patch-ad) = 1316212cceb8184e9e1af4006bebd462e893cd94
 SHA1 (patch-ae) = 2923fa751a0e3dba13bc711694285973225e21b6
 SHA1 (patch-af) = 1df2f9fb0b536cc30f94ba357a5de9fe11bbf941
 SHA1 (patch-ag) = 29f4e9ca85bfbdaa53aa99ba077a4b657fea8c87
diff -r 41c0f0d137b2 -r 5e0f3a2e7de3 mail/mush/patches/patch-ad
--- a/mail/mush/patches/patch-ad        Sun May 29 05:16:27 2005 +0000
+++ b/mail/mush/patches/patch-ad        Sun May 29 05:33:42 2005 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-ad,v 1.2 1998/09/15 06:18:07 garbled Exp $
---- mush.h.orig        Mon Sep 14 22:55:37 1998
-+++ mush.h     Mon Sep 14 22:57:28 1998
+$NetBSD: patch-ad,v 1.3 2005/05/29 05:33:42 minskim Exp $
+
+--- mush.h.orig        2005-05-29 00:29:17.730213120 -0500
++++ mush.h
 @@ -4,89 +4,98 @@
  
  /* POSIX -- a collection of standardized parts from SYSV and BSD */
@@ -157,7 +158,7 @@
  
  #ifndef __STDC__
  extern char
-@@ -100,79 +109,85 @@
+@@ -100,79 +109,85 @@ extern void
      xfree();          /* free malloc'ed pointers */
  
  #ifdef BSD
@@ -287,7 +288,7 @@
  #endif /* CTRL */
  #define CTRL(c)               ((c) & 037)
  
-@@ -180,20 +195,24 @@
+@@ -180,20 +195,24 @@ extern char *getcwd();
  
  #define NO_STRING     ""
  #ifdef  NULL
@@ -315,7 +316,7 @@
  #endif /* SUNTOOL */
  
  /* For error recovery purposes, send keyboard generated signals to a special
-@@ -211,121 +230,121 @@
+@@ -211,121 +230,121 @@ extern int bell();
  
  /* Don't flush input when setting echo or cbreak modes (allow typeahead) */
  #ifdef TIOCSETN
@@ -521,7 +522,7 @@
  #endif /* ~USG */
  
  /* With all that out of the way, we can now declare our tty type */
-@@ -351,78 +370,78 @@
+@@ -351,78 +370,78 @@ extern char
  #define Debug         if (debug == 0) {;} else (void) wprint
  
  #ifdef SYSV
@@ -643,7 +644,7 @@
  #endif
  
  #endif /* SUNTOOL */
-@@ -547,8 +566,13 @@
+@@ -547,8 +566,13 @@ u_long   glob_flags;      /* global boolean f
  /* It is possible to reset MAX_PRIORITY to as high as 9 */
  #define MAX_PRIORITY  5
  
@@ -659,7 +660,7 @@
  struct msg {
      u_long m_flags;
      long   m_offset;  /* offset in tempfile of msg */
-@@ -559,7 +583,16 @@
+@@ -559,7 +583,16 @@ struct msg {
      char   *m_to;     /* Cached To: field */
      char   *m_subject;        /* Cached Subject: field */
      char   *m_from;   /* Cached Reply-To: or From: field */
@@ -677,7 +678,7 @@
  
  struct options {
      char *option;
-@@ -603,7 +636,11 @@
+@@ -603,7 +636,11 @@ jmp_buf jmpbuf;           /* longjmp to jmpbuf on
  char
      debug,            /* debug causes various print statements in code */
      tempfile[MAXPATHLEN],     /* path to filename of temporary file */
@@ -689,7 +690,7 @@
      **alternates,     /* alternates list --see alts() */
      *cmd_help,                /* filename of location for "command -?" commands. */
      *login,           /* login name of user */
-@@ -658,6 +695,9 @@
+@@ -658,6 +695,9 @@ char
  int
      last_msg_cnt,     /* when checking for new mail, save the last msg_cnt */
      msg_cnt,          /* total number of messages */
@@ -699,7 +700,7 @@
      crt,              /* min number of lines msg contains to invoke pager */
      current_msg,      /* the current message we're dealing with */
      exec_pid,         /* pid of a command that has been "exec"ed */
-@@ -666,7 +706,7 @@
+@@ -666,7 +706,7 @@ int
  #if defined(SUNTOOL) || defined(lint)
      istool,           /* argv[0] == "xxxxtool", ranges from 0 to 2 */
  #else /* !SUNTOOL */
@@ -708,7 +709,7 @@
  #endif /* SUNTOOL */
      n_array[128],     /* array of message numbers in the header window */
      screen,           /* number of headers window can handle */
-@@ -725,7 +765,7 @@
+@@ -725,7 +765,7 @@ int
  char * quoteit();
  
  #ifndef SIGRET
@@ -717,7 +718,7 @@
  #endif /* SIGRET */
  SIGRET
      rm_edfile(),      /* remove letter-compose file on interrupts */
-@@ -737,8 +777,8 @@
+@@ -737,8 +777,8 @@ SIGRET
  
  long
      spool_size,               /* size of spool mail regardless of current folder */
@@ -728,7 +729,7 @@
  
  void
      error(), getmail(), mail_status(), sign_letter(),
-@@ -754,9 +794,9 @@
+@@ -754,9 +794,9 @@ void
  #ifdef TIOCGLTC
  struct ltchars ltchars;                       /* tty character settings */
  #endif /* TIOCGLTC */
@@ -740,7 +741,7 @@
  
  #ifdef CURSES
  
-@@ -775,16 +815,16 @@
+@@ -775,16 +815,16 @@ void
      mac_flush();      /* Abandon macro processing (on error) */
  
  #if defined(SUNTOOL) || defined(POP3_SUPPORT)
@@ -764,3 +765,11 @@
  
  int
      time_out;         /* time out interval to wait for new mail */
+@@ -838,3 +878,7 @@ typedef enum {
+     MUSH_SCROLL_PASS_EVENT
+ } Scroll_action;
+ #endif /* SUNTOOL */
++
++#ifdef __linux__
++#include <time.h>
++#endif



Home | Main Index | Thread Index | Old Index