$OpenBSD: patch-auto_def,v 1.8 2020/03/14 12:41:45 sthen Exp $

Index: auto.def
--- auto.def.orig
+++ auto.def
@@ -539,6 +539,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]} {
@@ -548,6 +549,7 @@ if {[get-define want-sasl]} {
         break
       }
     }
+    }
     if {![get-define USE_SASL]} {
       user-error "Unable to find SASL"
     }
@@ -1201,13 +1203,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]"
 }
 
 ###############################################################################
