Build: avoid compiling code for unused transports, routers, authenticators
[exim.git] / src / src / routers / ipliteral.c
index 3d68642a2c1d699dc9ab8014027027abf9ef57f1..16e096b406c5a010663c9f84d1d98a271039df9c 100644 (file)
@@ -5,9 +5,12 @@
 /* Copyright (c) The Exim Maintainers 2020 - 2022 */
 /* Copyright (c) University of Cambridge 1995 - 2018 */
 /* See the file NOTICE for conditions of use and distribution. */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 
 
 #include "../exim.h"
+
+#ifdef ROUTER_IPLITERAL                /* Remainder of file */
 #include "rf_functions.h"
 #include "ipliteral.h"
 
@@ -198,5 +201,6 @@ return rf_queue_add(addr, addr_local, addr_remote, rblock, pw)?
   OK : DEFER;
 }
 
-#endif   /*!MACRO_PREDEF*/
+#endif /*!MACRO_PREDEF*/
+#endif /*ROUTER_IPLITERAL*/
 /* End of routers/ipliteral.c */