Fix renameat2 configure check
Give this a chance to ever succeed by not using undefined variables in the test code. Found by a KDE unit test observing changes in inotify behavior between Qt5 and Qt6. Pick-to: 6.2 6.3 6.3.1 Change-Id: Iceb743d88dfa093c02d76ce32ea5c8ced24bfc5b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
6f9f6849c5
commit
193039dff3
@ -435,7 +435,7 @@ qt_config_compile_test(renameat2
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
int main(int, char **argv)
|
||||
{
|
||||
/* BEGIN TEST: */
|
||||
renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
|
||||
|
Loading…
Reference in New Issue
Block a user