diff --git a/Common/LuaBindings.cpp b/Common/LuaBindings.cpp
index e20a7f8f37b077284343662d7716198f890b2d16..3820811fb1e116331387b66f8e4d95d9261dacfc 100644
--- a/Common/LuaBindings.cpp
+++ b/Common/LuaBindings.cpp
@@ -30,13 +30,13 @@
 #include "GmshMessage.h"
 #include "linearSystem.h"
 #include "Options.h"
-#include "elasticitySolver.h"
 
 #if defined(HAVE_OPENGL)
 #include "drawContext.h"
 #endif
 
 #if defined(HAVE_SOLVER)
+#include "elasticitySolver.h"
 #include "linearSystemCSR.h"
 #endif
 
diff --git a/Solver/elasticitySolver.cpp b/Solver/elasticitySolver.cpp
index 7343015894178253fc29eacc4a7b103c78c1e84a..c1fe43c6ac2b7e6fc00d2ad3eb0eeeb2147c6201 100644
--- a/Solver/elasticitySolver.cpp
+++ b/Solver/elasticitySolver.cpp
@@ -104,10 +104,12 @@ void elasticitySolver::readInputFile(const std::string &fn)
   while(!feof(f)){
     if(fscanf(f, "%s", what) != 1) return;
     if(what[0]=='#'){
+      /*
       char *line=NULL;
       size_t l = 0;
       int r = getline(&line,&l,f);
       free(line);
+      */
     }
     else if (!strcmp(what, "ElasticDomain")){
       elasticField field;