-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/cp_files: ignore if SEEK_DATA is not defined
Not all C libraries support SEEK_DATA (e.g., uClibc). Skip the test case cp_files if SEEK_DATA is not defined. Signed-off-by: José Luis Salvador Rufo <[email protected]>
- Loading branch information
1 parent
04bae5e
commit f893ed9
Showing
7 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
dnl # | ||
dnl # Check for SEEK_DATA - only used for cp_files/seekflood test case. | ||
dnl # | ||
AC_DEFUN([ZFS_AC_CONFIG_USER_UNISTD], [ | ||
AC_COMPILE_IFELSE( | ||
[AC_LANG_SOURCE( | ||
[[#ifndef _GNU_SOURCE | ||
#define _GNU_SOURCE | ||
#endif | ||
#if defined SEEK_DATA | ||
int ok; | ||
#else | ||
error fail | ||
#endif | ||
]])], | ||
[user_unistd_seek_data=yes], | ||
[user_unistd_seek_data=no]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters