diff src/s/gnu-linux.h @ 73073:bf1ea63459be

(MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
author Romain Francoise <romain@orebokech.com>
date Sat, 23 Sep 2006 13:50:32 +0000
parents a30f70d64256
children 2bd7a6d6a83f bb0e318b7c53
line wrap: on
line diff
--- a/src/s/gnu-linux.h	Sat Sep 23 09:17:00 2006 +0000
+++ b/src/s/gnu-linux.h	Sat Sep 23 13:50:32 2006 +0000
@@ -142,8 +142,12 @@
    movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
    HAVE_MAILLOCK_H are defined, so the following appears to be the
    correct logic.  -- fx */
+/* We must check for HAVE_LIBLOCKFILE too, as movemail does.
+   liblockfile is a Free Software replacement for libmail, used on
+   Debian systems and elsewhere. -rfr */
 
-#if !(defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H))
+#if !((defined (HAVE_LIBMAIL) || defined (HAVE_LIBLOCKFILE)) &&	\
+      defined (HAVE_MAILLOCK_H))
 #define MAIL_USE_FLOCK
 #endif