--- src/todoterm.cc	2008-05-03 17:10:43.000000000 +0200
+++ src/todoterm.cc	2008-05-03 17:08:46.000000000 +0200
@@ -4,6 +4,7 @@
 #ifdef USETERMCAP
 #include <iostream>
 #include <string>
+#include <stdlib.h>
 #include <stdexcept>
 #include <curses.h>
 #include <term.h>
