rationnalize includes a lot:
[apps/madmutt.git] / dotlock.c
index 118f531..3f55d40 100644 (file)
--- a/dotlock.c
+++ b/dotlock.c
@@ -8,23 +8,9 @@
  * please see the file GPL in the top level source directory.
  */
 
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <lib-lib/lib-lib.h>
 
-#include <unistd.h>
-#include <dirent.h>
-#include <sys/file.h>
-#include <sys/stat.h>
 #include <sys/utsname.h>
-#include <errno.h>
-#include <time.h>
-#include <fcntl.h>
-#include <limits.h>
 
 #ifndef _POSIX_PATH_MAX
 #include <posix1_lim.h>
 
 # endif
 
-# ifndef HAVE_SNPRINTF
-extern int snprintf (char *, size_t, const char *, ...);
-# endif
-
-#include <lib-lib/lib-lib.h>
-
 static int DotlockFlags;
 static int Retry = MAXLOCKATTEMPT;