Merge pull request #2153 from oxzi/check_swap-fix-bsd-svr4

check_swap: Fix Build At Least For OpenBSD
This commit is contained in:
Lorenz Kästle 2025-09-16 12:22:18 +02:00 committed by GitHub
commit c1f0f113c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,10 +52,10 @@ swap_result get_swap_data(swap_config config) {
}
# else // HAVE_SWAP
# ifdef CHECK_SWAP_SWAPCTL_SVR4
return getSwapFromSwapctl_SRV4();
return getSwapFromSwapctl_SRV4(config);
# else // CHECK_SWAP_SWAPCTL_SVR4
# ifdef CHECK_SWAP_SWAPCTL_BSD
return getSwapFromSwapctl_BSD();
return getSwapFromSwapctl_BSD(config);
# else // CHECK_SWAP_SWAPCTL_BSD
# error No way found to retrieve swap
# endif /* CHECK_SWAP_SWAPCTL_BSD */