summarylogtreecommitdiffstats
path: root/0001-R-plugin-fix-preprocessor.patch
blob: 626aed3cc7764987ef36e0b484eb7ed58f7ccb9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From d53eff861354e6a626d2692fea2f24c9dc5ef965 Mon Sep 17 00:00:00 2001
From: wangjiezhe <wangjiezhe@gmail.com>
Date: Mon, 23 May 2016 13:36:44 +0800
Subject: [PATCH 1/4] R plugin: fix preprocessor

---
 plugins/r/src/tm_r.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/r/src/tm_r.c b/plugins/r/src/tm_r.c
index 37ce819..b10cbee 100644
--- a/plugins/r/src/tm_r.c
+++ b/plugins/r/src/tm_r.c
@@ -14,7 +14,8 @@
 #include <sys/select.h>
 #if HAVE_PTY_H
 #include <pty.h>
-#else
+#endif
+#if HAVE_UTIL_H
 #include <util.h>
 #endif
 
-- 
2.8.3