xref: /freebsd/lib/libsbuf/tests/sbuf_test_common.h (revision 148a8da8d98ce7d4ec6709ebbb580a4f94316084)
1b824378bSEnji Cooper /*-
2*148a8da8SEnji Cooper  * Copyright (c) 2017 Enji Cooper <ngie@freebsd.org>
3b824378bSEnji Cooper  *
4b824378bSEnji Cooper  * Redistribution and use in source and binary forms, with or without
5b824378bSEnji Cooper  * modification, are permitted provided that the following conditions
6b824378bSEnji Cooper  * are met:
7b824378bSEnji Cooper  * 1. Redistributions of source code must retain the above copyright
8b824378bSEnji Cooper  *    notice, this list of conditions and the following disclaimer.
9b824378bSEnji Cooper  * 2. Redistributions in binary form must reproduce the above copyright
10b824378bSEnji Cooper  *    notice, this list of conditions and the following disclaimer in the
11b824378bSEnji Cooper  *    documentation and/or other materials provided with the distribution.
12b824378bSEnji Cooper  *
13b824378bSEnji Cooper  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14b824378bSEnji Cooper  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15b824378bSEnji Cooper  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16b824378bSEnji Cooper  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17b824378bSEnji Cooper  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18b824378bSEnji Cooper  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19b824378bSEnji Cooper  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20b824378bSEnji Cooper  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21b824378bSEnji Cooper  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22b824378bSEnji Cooper  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23b824378bSEnji Cooper  * SUCH DAMAGE.
24b824378bSEnji Cooper  *
25b824378bSEnji Cooper  * $FreeBSD$
26b824378bSEnji Cooper  */
27b824378bSEnji Cooper 
28b824378bSEnji Cooper #ifndef	__LIBSBUF_TEST_COMMON_H__
29b824378bSEnji Cooper #define	__LIBSBUF_TEST_COMMON_H__
30b824378bSEnji Cooper 
31b824378bSEnji Cooper #include <sys/param.h>
32b824378bSEnji Cooper 
33b824378bSEnji Cooper #if __FreeBSD_version > 1100064
34b824378bSEnji Cooper #define	HAVE_SBUF_GET_FLAGS
35b824378bSEnji Cooper #define	HAVE_SBUF_CLEAR_FLAGS
36b824378bSEnji Cooper #define	HAVE_SBUF_SET_FLAGS
37b824378bSEnji Cooper #endif
38b824378bSEnji Cooper 
39b824378bSEnji Cooper #endif
40