diff options
author | obrien <obrien@FreeBSD.org> | 2001-08-13 05:14:42 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-08-13 05:14:42 +0800 |
commit | e967b1604e8caa796367628a83e912cf592ac295 (patch) | |
tree | 8441f87c1c5a08f9a95b8bec719661c09b52ed4f /devel/cdecl | |
parent | 5af8f04436776b088443fbf5e6830c9216f23b31 (diff) | |
download | freebsd-ports-gnome-e967b1604e8caa796367628a83e912cf592ac295.tar.gz freebsd-ports-gnome-e967b1604e8caa796367628a83e912cf592ac295.tar.zst freebsd-ports-gnome-e967b1604e8caa796367628a83e912cf592ac295.zip |
Update master site and fix compliation problem on newer FreeBSD systems.
Submitted by: Seth Kingsley <seth.kingsley@windriver.com>
Diffstat (limited to 'devel/cdecl')
-rw-r--r-- | devel/cdecl/Makefile | 2 | ||||
-rw-r--r-- | devel/cdecl/files/patch-02 | 47 |
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 */ |