Index: trunk/FACT++/src/datalogger.cc
===================================================================
--- trunk/FACT++/src/datalogger.cc	(revision 15162)
+++ trunk/FACT++/src/datalogger.cc	(revision 15163)
@@ -86,6 +86,8 @@
 #include "DimState.h"
 
+#ifdef HAVE_LIBNOVA
 #include <libnova/solar.h>
 #include <libnova/rise_set.h>
+#endif
 
 //Dim structures
@@ -1271,4 +1273,5 @@
 Time DataLogger::GetSunRise(const Time &time)
 {
+#ifdef HAVE_LIBNOVA
     const double lon = -(17.+53./60+26.525/3600);
     const double lat =   28.+45./60+42.462/3600;
@@ -1296,4 +1299,7 @@
 
     return Time(sun_day.rise);
+#else
+    return time;
+#endif
 }
 
