Build: ifdef guard for EXPERIMENTAL_QUEUEFILE
[users/heiko/exim.git] / src / src / transports / queuefile.c
index 21ed3527f3f575fc539da63783e45faf75b3e8f9..e657e350fbc62d0fdce3c0f0ecc8e3905e0c4977 100644 (file)
@@ -8,9 +8,16 @@
 /* See the file NOTICE for conditions of use and distribution. */
 
 
+
 #include "../exim.h"
+
+#ifdef EXPERIMENTAL_QUEUEFILE  /* whole file */
 #include "queuefile.h"
 
+#ifndef EXIM_HAVE_OPENAT
+# error queuefile transport reqires openat() support
+#endif
+
 /* Options specific to the appendfile transport. They must be in alphabetic
 order (note that "_" comes before the lower case letters). Some of them are
 stored in the publicly visible instance block - these are flagged with the
@@ -276,3 +283,4 @@ return FALSE;
 }
 
 #endif /*!MACRO_PREDEF*/
+#endif /*EXPERIMENTAL_QUEUEFILE*/