libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] testsuite: Fix C99 compatibility issue in lt_dlopen_a.at


From: Florian Weimer
Subject: [PATCH] testsuite: Fix C99 compatibility issue in lt_dlopen_a.at
Date: Tue, 10 Jan 2023 10:21:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Include <string.h> for the strcmp function.  This improves C99
compiler compatibility because it avoids an implicit function
declaration.

---
 tests/lt_dlopen_a.at | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/lt_dlopen_a.at b/tests/lt_dlopen_a.at
index 95f18a0d..d3948738 100644
--- a/tests/lt_dlopen_a.at
+++ b/tests/lt_dlopen_a.at
@@ -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.

base-commit: 1ec8fa28dcb29500d485c136db28315671ec4c3b




reply via email to

[Prev in Thread] Current Thread [Next in Thread]