Build: avoid compiling code for unused transports, routers, authenticators
[exim.git] / src / src / auths / plaintext.c
index 391e629f9e230a52b42baa23a246e5ec9a1eddc2..8148960473dfa622ac5af597977f22fc2d536c39 100644 (file)
@@ -8,6 +8,8 @@
 /* SPDX-License-Identifier: GPL-2.0-or-later */
 
 #include "../exim.h"
+
+#ifdef AUTH_PLAINTEXT  /* Remainder of file */
 #include "plaintext.h"
 
 
@@ -176,5 +178,6 @@ while ((s = string_nextinlist(&text, &sep, NULL, 0)))
 return FAIL;
 }
 
-#endif   /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*AUTH_PLAINTEST*/
 /* End of plaintext.c */