From 4a5a7cfee21adb0d8f6bc50d3e58d70a59e041a5 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 30 Mar 2006 18:06:17 +0000 Subject: Avoid extra stat() calls by not repeatedly checking whether a file exists on the disk -- we can just check whether a variable defined by find-files.mk is "__nonexistent__" or not. --- security/tcp_wrappers/builtin.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'security/tcp_wrappers') diff --git a/security/tcp_wrappers/builtin.mk b/security/tcp_wrappers/builtin.mk index d571b5df8e8..8537f44cf01 100644 --- a/security/tcp_wrappers/builtin.mk +++ b/security/tcp_wrappers/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.6 2005/06/01 18:03:21 jlam Exp $ +# $NetBSD: builtin.mk,v 1.7 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= tcp_wrappers @@ -14,8 +14,8 @@ BUILTIN_FIND_FILES.H_TCP_WRAPPERS= /usr/include/tcpd.h ### .if !defined(IS_BUILTIN.tcp_wrappers) IS_BUILTIN.tcp_wrappers= no -. if empty(H_TCP_WRAPPERS:M${LOCALBASE}/*) && \ - exists(${H_TCP_WRAPPERS}) && \ +. if empty(H_TCP_WRAPPERS:M__nonexistent__) && \ + empty(H_TCP_WRAPPERS:M${LOCALBASE}/*) && \ !empty(BUILTIN_LIB_FOUND.wrap:M[yY][eE][sS]) IS_BUILTIN.tcp_wrappers= yes . endif -- cgit v1.2.3