mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
Fix the build on -current.
This commit is contained in:
parent
9acb6f43f9
commit
287b20ed2e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116452
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= mshell
|
||||
PORTVERSION= 1.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= jmz
|
||||
|
@ -1,22 +1,30 @@
|
||||
*** string.c.orig Fri Sep 23 18:34:06 1994
|
||||
--- string.c Fri Sep 23 18:50:39 1994
|
||||
***************
|
||||
*** 4,9 ****
|
||||
--- 4,20 ----
|
||||
#define strchr index
|
||||
#endif
|
||||
|
||||
+ char *
|
||||
+ gets (char *s)
|
||||
+ {
|
||||
+ char *x = fgets (s, WORDLEN, stdin);
|
||||
+ if (x) {
|
||||
+ char *p = strchr (x, '\n');
|
||||
+ if (p)
|
||||
+ *p = 0;
|
||||
+ }
|
||||
+ return x;
|
||||
+ }
|
||||
|
||||
/* function to find the position of sub_string in main_string
|
||||
* ---------------------------------------------------------- */
|
||||
--- string.c~ Tue Aug 17 03:06:07 2004
|
||||
+++ string.c Tue Aug 17 03:06:28 2004
|
||||
@@ -4,6 +4,19 @@
|
||||
#define strchr index
|
||||
#endif
|
||||
|
||||
+char * strsave(char *);
|
||||
+
|
||||
+char *
|
||||
+gets (char *s)
|
||||
+{
|
||||
+ char *x = fgets (s, WORDLEN, stdin);
|
||||
+ if (x) {
|
||||
+ char *p = strchr (x, '\n');
|
||||
+ if (p)
|
||||
+ *p = 0;
|
||||
+ }
|
||||
+ return x;
|
||||
+}
|
||||
|
||||
/* 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)))
|
||||
|
@ -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)))
|
Loading…
Reference in New Issue
Block a user