From 136e5bc4f7095aef80e55c5e329de5e04bd85886 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 19 Feb 2012 01:39:07 +0100 Subject: Fix POSIX compliance * "WAIT_MYPGRP" isn't POSIX'ish. Relying on this caused compilation issues in certain environments (e.g. under Cygwin). As a workaround, define "WAIT_MYPGRP" explicitly if it's undefined. * "P_tmpdir" is an XSI extension. Don't try use it if it isn't available. Signed-off-by: Lukas Fleischer --- src/sigs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sigs.c') 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). -- cgit v1.2.3-54-g00ecf