$OpenBSD: patch-auto_def,v 1.13 2021/02/05 13:18:19 sthen Exp $

Index: auto.def
--- auto.def.orig
+++ auto.def
@@ -555,6 +555,7 @@ if {[get-define want-sasl]} {
     define USE_SASL
     define-feature SASL
   } else {
+    cc-with {-includes sys/types.h} {
     foreach sasl_lib {sasl2 sasl} {
       if {[check-inc-and-lib sasl [opt-val with-sasl $prefix] \
                              sasl/sasl.h sasl_encode64 $sasl_lib]} {
@@ -564,6 +565,7 @@ if {[get-define want-sasl]} {
         break
       }
     }
+    }
     if {![get-define USE_SASL]} {
       user-error "Unable to find SASL"
     }
@@ -1289,13 +1291,6 @@ set bare_rep {
 }
 set str_rep {
   PACKAGE_VERSION
-}
-
-###############################################################################
-# Use ccache - don't do it earlier than here
-if {[get-define CCACHE] ne {none}} {
-  define CC "[get-define CCACHE] [get-define CC]"
-  define CC_FOR_BUILD "[get-define CCACHE] [get-define CC_FOR_BUILD]"
 }
 
 ###############################################################################
