tests: fix uClibc for getversion.c

This patch fixes compilation with uClibc by applying the same fallback
as commit e12d76176d to the `getversion.c`
file, which was previously overlooked.
 
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
Closes #16735
Closes #16741
This commit is contained in:
José Luis Salvador Rufo 2024-11-15 09:56:12 +09:00 committed by Brian Behlendorf
parent 4c9f2cec46
commit 260065099e

View File

@ -19,9 +19,13 @@
*/
#include <sys/ioctl.h>
#ifdef _KERNEL
#include <sys/fcntl.h>
#else
#include <fcntl.h>
#endif
#include <linux/fs.h>
#include <err.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>