]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Annotate droppable functions for musl on next SOVERSION bump
authorGuillem Jover <guillem@hadrons.org>
Tue, 18 Apr 2023 01:59:17 +0000 (03:59 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sat, 22 Apr 2023 17:30:15 +0000 (19:30 +0200)
These are already provided by the musl libc, and can thus be dropped on
the next SOVERSION bump.

configure.ac

index c759d4e0502aa546f73573c3b075e587fad194af..93e3b365632214c87f1a6cf13a24b1e5afda51f8 100644 (file)
@@ -319,6 +319,12 @@ need_fpurge=yes
 need_funopen=yes
 AS_CASE([$host_os],
   [*-musl*], [
+    # On musl >= 0.5.0, strlcpy() and strlcat() were already implemented,
+    # so these can then be dropped on the next SOVERSION bump.
+    #need_strl=no
+    # On musl >= 0.9.7, optreset got implemented, so bsd_getopt() can then
+    # be dropped on the next SOVERSION bump.
+    #need_bsd_getopt=no
     # On musl >= 1.1.19, fopencookie() got implemented, and because we were
     # checking for its presence to decide whether to build funopen(), it got
     # included in builds even when previously it had not been included, which