patch 7.4.2325
Problem:    Tiny build fails.
Solution:   Add #ifdef.
diff --git a/src/buffer.c b/src/buffer.c
index f375c1f..6489168 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -476,6 +476,7 @@
 	unload_buf = TRUE;
 #endif
 
+#ifdef FEAT_AUTOCMD
     /* Disallow deleting the buffer when it is locked (already being closed or
      * halfway a command that relies on it). Unloading is allowed. */
     if (buf->b_locked > 0 && (del_buf || wipe_buf))
@@ -483,6 +484,7 @@
 	EMSG(_("E937: Attempt to delete a buffer that is in use"));
 	return;
     }
+#endif
 
     if (win != NULL
 #ifdef FEAT_WINDOWS