1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

Fix the build on -current.

This commit is contained in:
Jean-Marc Zucconi 2004-08-17 01:11:03 +00:00
parent 9acb6f43f9
commit 287b20ed2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116452
3 changed files with 31 additions and 32 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= mshell PORTNAME= mshell
PORTVERSION= 1.0 PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= misc CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= jmz MASTER_SITE_SUBDIR= jmz

View File

@ -1,22 +1,30 @@
*** string.c.orig Fri Sep 23 18:34:06 1994 --- string.c~ Tue Aug 17 03:06:07 2004
--- string.c Fri Sep 23 18:50:39 1994 +++ string.c Tue Aug 17 03:06:28 2004
*************** @@ -4,6 +4,19 @@
*** 4,9 **** #define strchr index
--- 4,20 ---- #endif
#define strchr index
#endif +char * strsave(char *);
+
+ char * +char *
+ gets (char *s) +gets (char *s)
+ { +{
+ char *x = fgets (s, WORDLEN, stdin); + char *x = fgets (s, WORDLEN, stdin);
+ if (x) { + if (x) {
+ char *p = strchr (x, '\n'); + char *p = strchr (x, '\n');
+ if (p) + if (p)
+ *p = 0; + *p = 0;
+ } + }
+ return x; + return x;
+ } +}
/* function to find the position of sub_string in main_string /* function to find the position of sub_string in main_string
* ---------------------------------------------------------- */ * ---------------------------------------------------------- */
@@ -260,7 +273,6 @@
/* if it has a multi-command delim, save rest for next time */
#define MULTI_CMD_DELIM ','
if (p = index(string, MULTI_CMD_DELIM)) {
- char *strsave();
struct inp_link *l;
*p++ = EOS;
if ((l=getnode(sizeof(*l))) && (l->input=strsave(p)))

View File

@ -1,10 +0,0 @@
--- string.c.orig Sun Oct 20 16:14:00 2002
+++ string.c Sun Oct 20 16:14:08 2002
@@ -271,7 +271,6 @@
/* if it has a multi-command delim, save rest for next time */
#define MULTI_CMD_DELIM ','
if (p = index(string, MULTI_CMD_DELIM)) {
- char *strsave();
struct inp_link *l;
*p++ = EOS;
if ((l=getnode(sizeof(*l))) && (l->input=strsave(p)))