From: Theodore Tso Date: Wed, 31 Aug 1994 01:35:49 +0000 (+0000) Subject: Added declaration for strdup() if HAS_STRDUP is not defined X-Git-Tag: krb5-1.0-beta4.3~130 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5fcee295bfa160f762bc72b16eabb0624cab83e6;p=krb5.git Added declaration for strdup() if HAS_STRDUP is not defined git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4208 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ss/ChangeLog b/src/util/ss/ChangeLog index c4ca07767..726f4205f 100644 --- a/src/util/ss/ChangeLog +++ b/src/util/ss/ChangeLog @@ -1,3 +1,11 @@ +Tue Aug 30 21:30:18 1994 Theodore Y. Ts'o (tytso at tsx-11) + + * cmd_tbl.lex.l: Add declaration for strdup() if HAS_STRDUP is not + defined. + + * ct.y: Added #include of string.h; added declaration for + strdup() if HAS_STRDUP is not defined. + Tue Jul 19 20:27:59 1994 Tom Yu (tlyu at dragons-lair) * Makefile.in: remove spurious includes rules diff --git a/src/util/ss/cmd_tbl.lex.l b/src/util/ss/cmd_tbl.lex.l index 2f413a8af..166f76deb 100644 --- a/src/util/ss/cmd_tbl.lex.l +++ b/src/util/ss/cmd_tbl.lex.l @@ -34,6 +34,10 @@ end return l_end(); #include "ct.tab.h" #include "mit-sipb-copyright.h" +#ifndef HAS_STRDUP +extern char *strdup(); +#endif + extern char *last_token; static l_command_table() diff --git a/src/util/ss/ct.y b/src/util/ss/ct.y index 6ad5dfcec..f1941fc84 100644 --- a/src/util/ss/ct.y +++ b/src/util/ss/ct.y @@ -5,8 +5,13 @@ * For copyright info, see mit-sipb-copyright.h. */ #include +#include #include "mit-sipb-copyright.h" +#ifndef HAS_STRDUP +extern char *strdup(); +#endif + char *str_concat3(), *generate_rqte(), *quote(); long flag_value(); char *last_token = (char *)NULL;