aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/blackbody.c1
-rw-r--r--src/libred.h4
-rw-r--r--src/parse_10deg.c3
-rw-r--r--src/solar.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/blackbody.c b/src/blackbody.c
index 7884f2f..1fb3689 100644
--- a/src/blackbody.c
+++ b/src/blackbody.c
@@ -18,6 +18,7 @@
#include "macros.h"
#include <math.h>
#include <errno.h>
+#include <fcntl.h>
diff --git a/src/libred.h b/src/libred.h
index 98011cb..83554e8 100644
--- a/src/libred.h
+++ b/src/libred.h
@@ -102,11 +102,7 @@ double libred_solar_elevation(double latitude, double longitude);
*
* @return 0 on success, -1 on error.
*/
-#if defined(TIMETRAVELLER)
int libred_check_timetravel(void);
-#else
-# define libred_check_timetravel() 0
-#endif
diff --git a/src/parse_10deg.c b/src/parse_10deg.c
index ef1c3d5..621e55e 100644
--- a/src/parse_10deg.c
+++ b/src/parse_10deg.c
@@ -14,8 +14,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "blackbody.h"
+#include "libred.h"
#include "macros.h"
+#include <math.h>
#include <sys/stat.h>
diff --git a/src/solar.c b/src/solar.c
index 697ecd6..eb06ae7 100644
--- a/src/solar.c
+++ b/src/solar.c
@@ -20,6 +20,8 @@
#include <math.h>
#include <time.h>
#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>