1315633Smm/*- 2315633Smm * Copyright (c) 2017 Martin Matuska 3315633Smm * All rights reserved. 4315633Smm * 5315633Smm * Redistribution and use in source and binary forms, with or without 6315633Smm * modification, are permitted provided that the following conditions 7315633Smm * are met: 8315633Smm * 1. Redistributions of source code must retain the above copyright 9315633Smm * notice, this list of conditions and the following disclaimer. 10315633Smm * 2. Redistributions in binary form must reproduce the above copyright 11315633Smm * notice, this list of conditions and the following disclaimer in the 12315633Smm * documentation and/or other materials provided with the distribution. 13315633Smm * 14315633Smm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 15315633Smm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16315633Smm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17315633Smm * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 18315633Smm * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19315633Smm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20315633Smm * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21315633Smm * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22315633Smm * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23315633Smm * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24315633Smm * 25315633Smm * $FreeBSD: stable/10/contrib/libarchive/libarchive/archive_platform_acl.h 358090 2020-02-19 01:51:44Z mm $ 26315633Smm */ 27315633Smm 28315633Smm/* !!ONLY FOR USE INTERNALLY TO LIBARCHIVE!! */ 29315633Smm 30315633Smm#ifndef ARCHIVE_PLATFORM_ACL_H_INCLUDED 31315633Smm#define ARCHIVE_PLATFORM_ACL_H_INCLUDED 32315633Smm 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 39315633Smm/* 40315633Smm * Determine what ACL types are supported 41315633Smm */ 42315633Smm#if ARCHIVE_ACL_FREEBSD || ARCHIVE_ACL_SUNOS || ARCHIVE_ACL_LIBACL 43315633Smm#define ARCHIVE_ACL_POSIX1E 1 44315633Smm#endif 45315633Smm 46315633Smm#if ARCHIVE_ACL_FREEBSD_NFS4 || ARCHIVE_ACL_SUNOS_NFS4 || \ 47315633Smm ARCHIVE_ACL_DARWIN || ARCHIVE_ACL_LIBRICHACL 48315633Smm#define ARCHIVE_ACL_NFS4 1 49315633Smm#endif 50315633Smm 51315633Smm#if ARCHIVE_ACL_POSIX1E || ARCHIVE_ACL_NFS4 52315633Smm#define ARCHIVE_ACL_SUPPORT 1 53315633Smm#endif 54315633Smm 55315633Smm#endif /* ARCHIVE_PLATFORM_ACL_H_INCLUDED */ 56