diff --git a/Common/onelabUtils.cpp b/Common/onelabUtils.cpp
index 651a53960746cba7537e255efb7c99504808cda7..47d9484dc622b1c30c69df29487b7cf19371783b 100644
--- a/Common/onelabUtils.cpp
+++ b/Common/onelabUtils.cpp
@@ -204,7 +204,7 @@ namespace onelabUtils {
   bool updateGraph(const std::string &graphNum)
   {
     bool changed = false;
-
+#if defined(HAVE_POST)
     PView *view = 0;
 
     for(unsigned int i = 0; i < PView::list.size(); i++){
@@ -254,7 +254,7 @@ namespace onelabUtils {
       delete view;
       changed = true;
     }
-
+#endif
     return changed;
   }