From ecd4b0cebef3a1a4d729ffd9a49cef80a3444a16 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@fb.com>
Date: Wed, 25 Aug 2021 01:34:27 -0700
Subject: [PATCH] maint: avoid new syntax-check failure

find-mount-point.h rightly includes <stdlib.h> for its use
of _GL_ATTRIBUTE_DEALLOC_FREE, which uses free, yet that new
inclusion provoked a syntax-check failure. Exempt this header
file as we've done for others.
* cfg.mk (exclude_file_name_regexp--sc_system_h_headers):
Add find-mount-point.h to the regexp.
(sc_system_h_headers): Use grep -E, for a more readable regexp.
---
 cfg.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cfg.mk b/cfg.mk
index 01bc42c7c..de198d992 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -175,7 +175,7 @@ sc_system_h_headers: .re-list
 	  trap 'rc=$$?; rm -f .re-list; exit $$rc' 0;			\
 	  $(gl_trap_);							\
 	  grep -nE -f .re-list						\
-	      $$($(VC_LIST_EXCEPT) | grep '^\($(srcdir)/\)\?src/')	\
+	      $$($(VC_LIST_EXCEPT) | grep -E '^($(srcdir)/)?src/')	\
 	    && { echo '$(ME): the above are already included via system.h'\
 		  1>&2;  exit 1; } || :;				\
 	fi
@@ -838,7 +838,7 @@ exclude_file_name_regexp--sc_bindtextdomain = \
 exclude_file_name_regexp--sc_trailing_blank = \
   ^(tests/pr/|gl/.*\.diff$$|man/help2man)
 exclude_file_name_regexp--sc_system_h_headers = \
-  ^src/((die|system|copy)\.h|make-prime-list\.c)$$
+  ^src/((die|system|copy|find-mount-point)\.h|make-prime-list\.c)$$

 _src = (false|lbracket|ls-(dir|ls|vdir)|tac-pipe|uname-(arch|uname))
 _gl_src = (xdecto.max|cl-strtold)
-- 
2.33.0

