Lots of little code cleanups to prevent warnings - mostly making sure
[mmh] / sbr / lock_file.c
index fe42196..a99c681 100644 (file)
@@ -8,6 +8,17 @@
 #include <h/mh.h>
 #include <h/signals.h>
 
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef TM_IN_SYS_TIME
+#  include <sys/time.h>
+# else
+#  include <time.h>
+# endif
+#endif
+
 #ifdef HAVE_ERRNO_H
 # include <errno.h>
 #endif