summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 8e76547..0ba3a87 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -523,8 +523,10 @@ get_tempdir (void)
{
if (getenv ("TMPDIR"))
return getenv ("TMPDIR");
+#ifdef P_tmpdir
else if (P_tmpdir)
return P_tmpdir;
+#endif
else
return "/tmp";
}