1315875Smm/*-
2315875Smm * Copyright (c) 2017 Martin Matuska
3315875Smm * All rights reserved.
4315875Smm *
5315875Smm * Redistribution and use in source and binary forms, with or without
6315875Smm * modification, are permitted provided that the following conditions
7315875Smm * are met:
8315875Smm * 1. Redistributions of source code must retain the above copyright
9315875Smm *    notice, this list of conditions and the following disclaimer.
10315875Smm * 2. Redistributions in binary form must reproduce the above copyright
11315875Smm *    notice, this list of conditions and the following disclaimer in the
12315875Smm *    documentation and/or other materials provided with the distribution.
13315875Smm *
14315875Smm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
15315875Smm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16315875Smm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17315875Smm * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
18315875Smm * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19315875Smm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20315875Smm * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21315875Smm * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22315875Smm * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23315875Smm * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24315875Smm *
25315875Smm * $FreeBSD: stable/10/contrib/libarchive/libarchive/archive_platform_xattr.h 358090 2020-02-19 01:51:44Z mm $
26315875Smm */
27315875Smm
28315875Smm/* !!ONLY FOR USE INTERNALLY TO LIBARCHIVE!! */
29315875Smm
30315875Smm#ifndef ARCHIVE_PLATFORM_XATTR_H_INCLUDED
31315875Smm#define ARCHIVE_PLATFORM_XATTR_H_INCLUDED
32315875Smm
33358090Smm#ifndef __LIBARCHIVE_BUILD
34358090Smm#ifndef __LIBARCHIVE_TEST_COMMON
35358090Smm#error This header is only to be used internally to libarchive.
36358090Smm#endif
37358090Smm#endif
38358090Smm
39315875Smm/*
40315875Smm * Determine if we support extended attributes
41315875Smm */
42315875Smm#if ARCHIVE_XATTR_LINUX || ARCHIVE_XATTR_DARWIN || ARCHIVE_XATTR_FREEBSD || \
43315875Smm    ARCHIVE_XATTR_AIX
44315875Smm#define ARCHIVE_XATTR_SUPPORT     1
45315875Smm#endif
46315875Smm
47315875Smm#endif	/* ARCHIVE_PLATFORM_XATTR_H_INCLUDED */
48