X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=lock.c;h=2d656df65289fcf3ae829ac3d5306cb192fd3d03;hb=910d5a2f852edb8c4e54c0e875da6a90385ab790;hp=213969f1f012f323c470ceb3a1e6b1c1aec43ffa;hpb=064e3c024f388b36af5d39702cbf64e24613cb4f;p=~andy%2Ffetchmail diff --git a/lock.c b/lock.c index 213969f1..2d656df6 100644 --- a/lock.c +++ b/lock.c @@ -6,21 +6,15 @@ #include "config.h" #include -#ifdef HAVE_STRING_H #include /* strcat() */ -#endif -#if defined(STDC_HEADERS) #include -#endif -#if defined(HAVE_UNISTD_H) #include -#endif #include #include #include #include "fetchmail.h" -#include "i18n.h" +#include "gettext.h" #include "lock.h" static char *lockfile; /** name of lockfile */ @@ -66,9 +60,7 @@ static void unlockit(void) void fm_lock_dispose(void) /* arrange for a lock to be removed on process exit */ { -#ifdef HAVE_ATEXIT atexit(unlockit); -#endif } int fm_lock_state(void)