archive_platform_acl.h revision 315633
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: vendor/libarchive/dist/libarchive/archive_platform_acl.h 315633 2017-03-20 11:12:31Z 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 33315633Smm/* 34315633Smm * Determine what ACL types are supported 35315633Smm */ 36315633Smm#if ARCHIVE_ACL_FREEBSD || ARCHIVE_ACL_SUNOS || ARCHIVE_ACL_LIBACL 37315633Smm#define ARCHIVE_ACL_POSIX1E 1 38315633Smm#endif 39315633Smm 40315633Smm#if ARCHIVE_ACL_FREEBSD_NFS4 || ARCHIVE_ACL_SUNOS_NFS4 || \ 41315633Smm ARCHIVE_ACL_DARWIN || ARCHIVE_ACL_LIBRICHACL 42315633Smm#define ARCHIVE_ACL_NFS4 1 43315633Smm#endif 44315633Smm 45315633Smm#if ARCHIVE_ACL_POSIX1E || ARCHIVE_ACL_NFS4 46315633Smm#define ARCHIVE_ACL_SUPPORT 1 47315633Smm#endif 48315633Smm 49315633Smm#endif /* ARCHIVE_PLATFORM_ACL_H_INCLUDED */ 50