]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check for missing #include <isc/strerr.h>
authorMark Andrews <marka@isc.org>
Fri, 16 Nov 2018 01:23:08 +0000 (12:23 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Nov 2018 01:24:21 +0000 (12:24 +1100)
util/checklibs.sh

index 9e00c8f78428773134031e66f3d3549139fa3969..20914b18d246a38c852b7b49200f9ae8920054ef 100755 (executable)
@@ -25,6 +25,21 @@ list=`git grep -l snprintf lib bin |
     echo "$list"
 }
 
+#
+# Check for missing #include <isc/strerr.h>
+#
+list=`git grep -wl strerror_r lib bin |
+      grep '\.c$' |
+      grep -vE -e '(lib/bind|lib/dns/rdata|lib/dns/gen.c)' \
+              -e lib/isc/string.c \
+              -e '(lib/isc/win32/time.c|dlzexternal/driver.c)' |
+      xargs grep -EL "(isc/strerr.h)" 2> /dev/null`
+[ -n "$list" ] && {
+    status=1
+    echo 'Missing #include <isc/strerr.h>:'
+    echo "$list"
+}
+
 #
 # Check for missing #include <inttypes.h>"
 #