aboutsummaryrefslogtreecommitdiff
path: root/devel/cdecl
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-08-12 21:14:42 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-08-12 21:14:42 +0000
commitb5d7782b28066c2874a0089e24a041e7d35cd696 (patch)
tree330823179a8f9361c95c7debdaf30a58da558c4d /devel/cdecl
parent053d74483a70666d01197aae0b2aae1ddbf789b8 (diff)
downloadports-b5d7782b28066c2874a0089e24a041e7d35cd696.tar.gz
ports-b5d7782b28066c2874a0089e24a041e7d35cd696.zip
Notes
Diffstat (limited to 'devel/cdecl')
-rw-r--r--devel/cdecl/Makefile2
-rw-r--r--devel/cdecl/files/patch-0247
2 files changed, 46 insertions, 3 deletions
diff --git a/devel/cdecl/Makefile b/devel/cdecl/Makefile
index 2633c0954819..f5f842e8dd7b 100644
--- a/devel/cdecl/Makefile
+++ b/devel/cdecl/Makefile
@@ -9,7 +9,7 @@
PORTNAME= cdecl
PORTVERSION= 2.5
CATEGORIES= devel
-MASTER_SITES= ftp://ftp.netsw.org/netsw/SoftEng/Lang/C/Tools/cdecl/ \
+MASTER_SITES=3D ftp://ftp.netsw.org/softeng/lang/c/tools/cdecl/ \
ftp://ftp.cc.gatech.edu/ac121/linux/devel/lang/c/ \
ftp://ftp.deva.net/pub/sources/programming/ \
ftp://ftp.bitcon.no//pub/linux/linuxberg/files/console/dev/ \
diff --git a/devel/cdecl/files/patch-02 b/devel/cdecl/files/patch-02
index d9d1ca49a0ff..c36d720197d0 100644
--- a/devel/cdecl/files/patch-02
+++ b/devel/cdecl/files/patch-02
@@ -1,6 +1,13 @@
--- cdecl.c.orig Mon Jan 15 19:54:46 1996
-+++ cdecl.c Sat Sep 4 20:02:59 1999
-@@ -67,6 +67,9 @@
++++ cdecl.c Sat Aug 11 21:12:11 2001
+@@ -63,10 +63,16 @@
+ #include <stdio.h>
+ #include <ctype.h>
+ #if __STDC__ || defined(DOS)
++# if (defined(__unix__) || defined(unix)) && !defined(USG)
++# include <sys/param.h>
++# endif
+ # include <stdlib.h>
# include <stddef.h>
# include <string.h>
# include <stdarg.h>
@@ -10,3 +17,39 @@
#else
# ifndef NOVARARGS
# include <varargs.h>
+@@ -138,7 +145,9 @@
+ void docast(char*, char*, char*, char*);
+ void dodexplain(char*, char*, char*, char*);
+ void docexplain(char*, char*, char*, char*);
++#if __FreeBSD_version < 430001 || (__FreeBSD_version >= 500000 && __FreeBSD_version < 500019)
+ void setprogname(char *);
++#endif
+ int dotmpfile(int, char**), dofileargs(int, char**);
+ #else
+ char *ds(), *cat(), *visible();
+@@ -148,7 +157,9 @@
+ void unsupp(), notsupported();
+ void yyerror();
+ void doset(), dodeclare(), docast(), dodexplain(), docexplain();
++#if __FreeBSD_version < 430001 || (__FreeBSD_version >= 500000 && __FreeBSD_version < 500019)
+ void setprogname();
++#endif
+ int dotmpfile(), dofileargs();
+ #endif /* __STDC__ */
+ FILE *tmpfile();
+@@ -802,6 +813,7 @@
+ #endif
+ }
+
++#if __FreeBSD_version < 430001 || (__FreeBSD_version >= 500000 && __FreeBSD_version < 500019)
+ /* Save away the name of the program from argv[0] */
+ void setprogname(argv0)
+ char *argv0;
+@@ -841,6 +853,7 @@
+ real_prompt[len+2] = '\0';
+ }
+ }
++#endif
+
+ /* Run down the list of keywords to see if the */
+ /* program is being called named as one of them */