about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-08-09 00:06:57 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-08-09 00:06:57 +0900
commitb0ebabdc6591f1edba6eaf233a9bb61bdfa57632 (patch)
tree8c2b0b5ddf441445b19f5b368a490358a1efa3de
parentd09dc4562a1bd72b923a730dbe837406e4f10ccb (diff)
downloadzsh-b0ebabdc6591f1edba6eaf233a9bb61bdfa57632.tar.gz
zsh-b0ebabdc6591f1edba6eaf233a9bb61bdfa57632.tar.xz
zsh-b0ebabdc6591f1edba6eaf233a9bb61bdfa57632.zip
35929: protect FDT_PROC_SUBST by #ifdef
-rw-r--r--ChangeLog4
-rw-r--r--Src/jobs.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 45fc04732..dc3ed2382 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-08-09  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
+
+	* 35929: Src/jobs.c: protect FDT_PROC_SUBST by #ifdef
+
 2015-08-08  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
 
 	* 35928: Src/utils.c, Doc/Zsh/prompt.yo: date/time format such
diff --git a/Src/jobs.c b/Src/jobs.c
index a71df6838..933348851 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -1189,8 +1189,11 @@ pipecleanfilelist(LinkList filelist, int proc_subst_only)
     while (node) {
 	Jobfile jf = (Jobfile)getdata(node);
 	if (jf->is_fd &&
-	    (!proc_subst_only ||
-	     fdtable[jf->u.fd] == FDT_PROC_SUBST)) {
+	    (!proc_subst_only
+#ifdef FDT_PROC_SUBST
+	     || fdtable[jf->u.fd] == FDT_PROC_SUBST
+#endif
+		)) {
 	    LinkNode next = nextnode(node);
 	    zclose(jf->u.fd);
 	    (void)remnode(filelist, node);