Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUACAMOLE-1026: Improved FreeRDP3 Configuration Checks for el7 and el8 Build Environments #526

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ then
int main() {
CLIPRDR_FORMAT_LIST list;
list.common.msgType = 0;
(void)list;
return 0;
}
]])],
Expand Down Expand Up @@ -989,10 +990,22 @@ then
AC_MSG_CHECKING([whether GetPluginData requires const for the returned args])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
#include <freerdp/dvc.h>
/* A dummy function that matches the expected signature of GetPluginData */
const ADDIN_ARGV* dummy_GetPluginData(IDRDYNVC_ENTRY_POINTS* pEntryPoints) {
return NULL;
}

int main() {
IDRDYNVC_ENTRY_POINTS test_entry_points;
const ADDIN_ARGV* args = test_entry_points.GetPluginData(&test_entry_points);
(void)args;
/* Create a dummy IDRDYNVC_ENTRY_POINTS struct */
IDRDYNVC_ENTRY_POINTS entryPoints;

/* Manually set the GetPluginData pointer for testing */
entryPoints.GetPluginData = dummy_GetPluginData;
const ADDIN_ARGV* result = entryPoints.GetPluginData(&entryPoints);

/* Casting to void to avoid unused variable warning */
(void)result;

return 0;
}
]])],
Expand Down
Loading