mirror of
https://github.com/opnsense/src.git
synced 2026-03-03 13:51:30 -05:00
Add __FreeBSD_version guards around hsearch_r to ease MFCing the code to
stable/10 It was added when __FreeBSD_version was ~1100027
This commit is contained in:
parent
040610408e
commit
92e8bbfdfd
1 changed files with 5 additions and 1 deletions
|
|
@ -231,6 +231,7 @@ ATF_TC_BODY(hsearch_two, tc)
|
|||
hdestroy();
|
||||
}
|
||||
|
||||
#if defined(__FreeBSD__) && 1100027 <= __FreeBSD_version
|
||||
#ifdef __NetBSD__
|
||||
ATF_TC(hsearch_r_basic);
|
||||
ATF_TC_HEAD(hsearch_r_basic, tc)
|
||||
|
|
@ -385,6 +386,7 @@ ATF_TC_BODY(hsearch_r_two, tc)
|
|||
|
||||
hdestroy_r(&t);
|
||||
}
|
||||
#endif
|
||||
|
||||
ATF_TP_ADD_TCS(tp)
|
||||
{
|
||||
|
|
@ -395,13 +397,15 @@ ATF_TP_ADD_TCS(tp)
|
|||
ATF_TP_ADD_TC(tp, hsearch_duplicate);
|
||||
ATF_TP_ADD_TC(tp, hsearch_nonexistent);
|
||||
ATF_TP_ADD_TC(tp, hsearch_two);
|
||||
|
||||
|
||||
#if defined(__FreeBSD__) && 1100027 <= __FreeBSD_version
|
||||
#ifdef __NetBSD__
|
||||
ATF_TP_ADD_TC(tp, hsearch_r_basic);
|
||||
#endif
|
||||
ATF_TP_ADD_TC(tp, hsearch_r_duplicate);
|
||||
ATF_TP_ADD_TC(tp, hsearch_r_nonexistent);
|
||||
ATF_TP_ADD_TC(tp, hsearch_r_two);
|
||||
#endif
|
||||
|
||||
return atf_no_error();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue