]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: Fix C99 compatibility issue in lt_dlopen_a.at
authorFlorian Weimer <fweimer@redhat.com>
Tue, 10 Jan 2023 09:21:04 +0000 (10:21 +0100)
committerMike Frysinger <vapier@gentoo.org>
Sun, 14 Jan 2024 04:47:35 +0000 (23:47 -0500)
Include <string.h> for the strcmp function.  This improves C99
compiler compatibility because it avoids an implicit function
declaration.

* tests/lt_dlopen_a.at: Include string.h.

tests/lt_dlopen_a.at

index 83623cff0a224417d038f0354b0cada95c8eadef..6997ba2b4fd98f19af77613ab4d02bd169e70a1f 100644 (file)
@@ -27,6 +27,7 @@ AT_KEYWORDS([libltdl lt_dlopen_a])
 AT_DATA([main.c],
 [[#include <ltdl.h>
 #include <stdio.h>
+#include <string.h>
 
 /* This dlopen() in the main executable should override any dlopen()s in
    shared libraries etc.