Skip to content

Commit

Permalink
tests: fix uClibc for getversion.c
Browse files Browse the repository at this point in the history
This patch fixes compilation with uClibc by applying the same fallback
as commit e12d761 to the `getversion.c`
file, which was previously overlooked.

Signed-off-by: José Luis Salvador Rufo <[email protected]>
Closes #16735
  • Loading branch information
jlsalvador committed Nov 11, 2024
1 parent 57fc597 commit 10d13e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/zfs-tests/cmd/getversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 10d13e0

Please sign in to comment.