aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sigs.c4
-rw-r--r--src/utils.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/sigs.c b/src/sigs.c
index a4f8140..6e74a09 100644
--- a/src/sigs.c
+++ b/src/sigs.c
@@ -43,6 +43,10 @@
#include "calcurse.h"
+#ifndef WAIT_MYPGRP
+#define WAIT_MYPGRP 0
+#endif
+
/*
* General signal handling routine.
* Catch return values from children (user-defined notification commands).
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";
}