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.
 
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
Closes openzfs#16735
Closes openzfs#16741
  • Loading branch information
jlsalvador authored and ixhamza committed Dec 2, 2024
1 parent 7820aef commit c8e6ab5
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 c8e6ab5

Please sign in to comment.