From 094ca96844842928810f14844413109fc6cdd890 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 3 Feb 2013 00:59:38 -0700 Subject: Initial Alpine Version --- contrib/ports/aos/aos.diff | 125 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 contrib/ports/aos/aos.diff (limited to 'contrib/ports/aos/aos.diff') diff --git a/contrib/ports/aos/aos.diff b/contrib/ports/aos/aos.diff new file mode 100644 index 00000000..a8858529 --- /dev/null +++ b/contrib/ports/aos/aos.diff @@ -0,0 +1,125 @@ +*** os_bsd.c.orig Mon Apr 15 17:46:29 1996 +--- pine3.93/imap/non-ANSI/c-client/os_bsd.c Mon Apr 15 14:02:14 1996 +*************** +*** 67,72 **** +--- 67,74 ---- + #include "memmove.c" + #include "strerror.c" + #include "strstr.c" ++ #ifndef ibm032 + #include "strtol.c" ++ #endif /* !ibm032 */ + #include "strtoul.c" + #include "tz_bsd.c" +*** os_bsd.h.orig Mon Apr 15 17:46:31 1996 +--- pine3.93/imap/non-ANSI/c-client/os_bsd.h Mon Apr 15 13:45:22 1996 +*************** +*** 40,46 **** +--- 40,48 ---- + #include + #include + #include ++ #ifndef ibm032 + #include /* needed for htons() prototypes */ ++ #endif /* !ibm032 */ + + + char *getenv (); +*** tz_bsd.c.orig Mon Apr 15 17:46:32 1996 +--- pine3.93/imap/non-ANSI/c-client/tz_bsd.c Mon Apr 15 16:22:38 1996 +*************** +*** 42,47 **** +--- 42,61 ---- + char *s; + void *t; + { ++ #ifndef ibm032 + /* append timezone from tm struct */ + sprintf (s + strlen (s)," (%s)",((struct tm *) t)->tm_zone); ++ #else ++ struct timeval tv; ++ struct timezone tz; ++ ++ (void)memset((char *)&tv, 0, sizeof(tv)); ++ (void)memset((char *)&tz, 0, sizeof(tz)); ++ ++ if (gettimeofday(&tv, &tz) < 0) ++ return; /* Silent error. */ ++ ++ (void)sprintf(s + strlen(s), " (%s)", ++ timezone(tz.tz_minuteswest, tz.tz_dsttime)); ++ #endif /* !ibm032 */ + } +*** other.c.orig Mon Apr 15 17:47:02 1996 +--- pine3.93/pine/other.c Mon Apr 15 15:18:02 1996 +*************** +*** 353,359 **** + pbuf.exittest = sigedit_exit_for_pico; + pbuf.upload = (ps_global->VAR_UPLOAD_CMD + && ps_global->VAR_UPLOAD_CMD[0]) +! ? upload_msg_to_pico : NULL; + pbuf.keybinit = init_keyboard; + pbuf.helper = helper; + pbuf.resize = resize_for_pico; +--- 353,359 ---- + pbuf.exittest = sigedit_exit_for_pico; + pbuf.upload = (ps_global->VAR_UPLOAD_CMD + && ps_global->VAR_UPLOAD_CMD[0]) +! ? (int(*)())upload_msg_to_pico : NULL; + pbuf.keybinit = init_keyboard; + pbuf.helper = helper; + pbuf.resize = resize_for_pico; +*** send.c.orig Mon Apr 15 17:47:12 1996 +--- pine3.93/pine/send.c Mon Apr 15 15:36:46 1996 +*************** +*** 1656,1662 **** + #else + pbuf.upload = (ps_global->VAR_UPLOAD_CMD + && ps_global->VAR_UPLOAD_CMD[0]) +! ? upload_msg_to_pico : NULL; + #endif + + pbuf.raw_io = Raw; +--- 1656,1662 ---- + #else + pbuf.upload = (ps_global->VAR_UPLOAD_CMD + && ps_global->VAR_UPLOAD_CMD[0]) +! ? (int (*)())upload_msg_to_pico : NULL; + #endif + + pbuf.raw_io = Raw; +*** tempfile.orig Mon Apr 15 17:48:22 1996 +--- pine3.93/pine/osdep/tempfile Mon Apr 15 15:39:52 1996 +*************** +*** 2,11 **** +--- 2,31 ---- + Create a temporary file, the name of which we don't care about + and that goes away when it is closed. Just like ANSI C tmpfile. + ----*/ ++ #ifdef ibm032 ++ #define FILENAMESIZE 20 ++ #define FILETMPLATE "/tmp/ptmpXXXXXX" ++ #endif /* ibm032 */ ++ + FILE * + create_tmpfile() + { ++ #ifndef ibm032 + return(tmpfile()); ++ #else ++ char buf[FILENAMESIZE]; ++ int fd; ++ ++ (void)memset(buf, 0, FILENAMESIZE); ++ (void)strcpy(buf, FILETMPLATE); ++ ++ if ((fd = mkstemp(buf)) < 0) ++ return(NULL); ++ ++ (void)unlink(buf); ++ ++ return(fdopen(fd, "w+")); ++ #endif /* !ibm032 */ + } + + -- cgit v1.2.3-70-g09d2