diff -ur ddd-3.3.11.orig/configure.ac ddd-3.3.11/configure.ac --- ddd-3.3.11.orig/configure.ac 2005-03-04 12:25:01.000000000 +0200 +++ ddd-3.3.11/configure.ac 2006-06-12 14:29:29.000000000 +0300 @@ -859,6 +859,8 @@ AH_TEMPLATE([HAVE_PTRACE_DECL],[Define if ptrace is declared in unistd.h sys/ptrace.h.]) ICE_CHECK_DECL(ptsname, stdlib.h) AH_TEMPLATE([HAVE_PTSNAME_DECL],[Define if ptsname is declared in stdlib.h.]) +ICE_CHECK_DECL(putenv, stdlib.h) +AH_TEMPLATE([HAVE_PUTENV_DECL],[Define if putenv is declared in stdlib.h.]) ICE_CHECK_DECL(raise, signal.h) AH_TEMPLATE([HAVE_RAISE_DECL],[Define if raise is declared in signal.h.]) ICE_CHECK_DECL(rand, stdlib.h) diff -ur ddd-3.3.11.orig/ddd/environ.C ddd-3.3.11/ddd/environ.C --- ddd-3.3.11.orig/ddd/environ.C 2004-06-07 14:52:55.000000000 +0300 +++ ddd-3.3.11/ddd/environ.C 2006-06-12 14:25:09.000000000 +0300 @@ -37,6 +37,10 @@ #include // getenv, putenv #include +#if !HAVE_PUTENV_DECL +extern "C" int putenv(char *string); +#endif + static StringArray environment_names; // Put NAME=VALUE into the environment diff -ur ddd-3.3.11.orig/ddd/options.C ddd-3.3.11/ddd/options.C --- ddd-3.3.11.orig/ddd/options.C 2004-06-07 14:52:55.000000000 +0300 +++ ddd-3.3.11/ddd/options.C 2006-06-12 14:25:16.000000000 +0300 @@ -1439,7 +1439,7 @@ #if HAVE_SYMLINK // Try a symlink link from target to current core file - if (symlink(info.core.chars(), target.chars()) == 0) + if (symlink((char *)info.core.chars(), (char *)target.chars()) == 0) return true; #endif diff -ur ddd-3.3.11.orig/ddd/session.C ddd-3.3.11/ddd/session.C --- ddd-3.3.11.orig/ddd/session.C 2004-06-07 14:52:55.000000000 +0300 +++ ddd-3.3.11/ddd/session.C 2006-06-12 14:23:02.000000000 +0300 @@ -116,6 +116,9 @@ #define S_IRWXO 07 #endif +#if !HAVE_PUTENV_DECL +extern "C" int putenv(char *string); +#endif // --------------------------------------------------------------------------- // How to present a default session to the user diff -ur ddd-3.3.11.orig/ddd/xconfig.C ddd-3.3.11/ddd/xconfig.C --- ddd-3.3.11.orig/ddd/xconfig.C 2004-06-07 14:52:56.000000000 +0300 +++ ddd-3.3.11/ddd/xconfig.C 2006-06-12 14:21:59.000000000 +0300 @@ -58,7 +58,9 @@ #if !HAVE_PCLOSE_DECL extern "C" int pclose(FILE *stream); #endif - +#if !HAVE_PUTENV_DECL +extern "C" int putenv(char *string); +#endif //----------------------------------------------------------------------------- // Determine X project root