b5d7782b28
Submitted by: Seth Kingsley <seth.kingsley@windriver.com>
55 lines
1.6 KiB
Text
55 lines
1.6 KiB
Text
--- cdecl.c.orig Mon Jan 15 19:54:46 1996
|
|
+++ 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>
|
|
+# ifndef DOS
|
|
+# include <errno.h> /* only M$-DOS environments have ``errno'' in stdlib.h */
|
|
+# endif /* ndef DOS */
|
|
#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 */
|