summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-08-12 21:14:42 +0000
committerobrien <obrien@FreeBSD.org>2001-08-12 21:14:42 +0000
commite967b1604e8caa796367628a83e912cf592ac295 (patch)
tree8441f87c1c5a08f9a95b8bec719661c09b52ed4f
parent5af8f04436776b088443fbf5e6830c9216f23b31 (diff)
downloadFreeBSD-ports-e967b1604e8caa796367628a83e912cf592ac295.zip
FreeBSD-ports-e967b1604e8caa796367628a83e912cf592ac295.tar.gz
Update master site and fix compliation problem on newer FreeBSD systems.
Submitted by: Seth Kingsley <seth.kingsley@windriver.com>
-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 2633c09..f5f842e 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 d9d1ca4..c36d720 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 */
OpenPOWER on IntegriCloud