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/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils.c') 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"; } -- cgit v1.2.3-54-g00ecf