--- fam/Listener.c++.orig Tue Apr 15 13:52:40 2003 +++ fam/Listener.c++ Thu Jan 11 05:28:45 2007 @@ -36,6 +36,10 @@ #include #include #include +#ifdef __FreeBSD__ +#include +#include +#endif // __FreeBSD__ #include @@ -203,7 +207,7 @@ // requested user and pass the name back to the client. // Unset TMPDIR to ensure that tempnam() works as desired - putenv("TMPDIR="); + unsetenv("TMPDIR"); char *tmpfile = tempnam("/tmp", ".fam"); #if defined(__FreeBSD__)