From 8a35ed55cb6f6600debdd8266bdf71386933b088 Mon Sep 17 00:00:00 2001
From: Mark Grondona <mgrondona@llnl.gov>
Date: Wed, 29 Jan 2003 00:07:01 +0000
Subject: [PATCH]  o wrap include of "attach.h" in #if HAVE_TOTALVIEW

---
 src/srun/allocate.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/srun/allocate.c b/src/srun/allocate.c
index 0adb797e0cc..0eac1aaa976 100644
--- a/src/srun/allocate.c
+++ b/src/srun/allocate.c
@@ -37,9 +37,12 @@
 #include "src/api/slurm.h"
 
 #include "src/srun/allocate.h"
-#include "src/srun/attach.h"
 #include "src/srun/opt.h"
 
+#if HAVE_TOTALVIEW
+#  include "src/srun/attach.h"
+#endif
+
 #define MAX_RETRIES 10
 
 /*
-- 
GitLab