blob: 37f1594acaa676c5e618c288de8f6f9b0497b899 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
* License: BSD-style license
* Copyright: Bernd Schubert <bernd.schubert@fastmail.fm>
*
*/
#ifndef CONF_H_
#define CONF_H_
#ifdef _XOPEN_SOURCE
// *at support, such as openat, utimensat, etc (see man 2 openat)
#include <fcntl.h>
#include <sys/stat.h>
#if !defined (DISABLE_AT) && (_XOPEN_SOURCE >= 700 && _POSIX_C_SOURCE >= 200809L) \
&& defined (AT_SYMLINK_NOFOLLOW)
#define UNIONFS_HAVE_AT
#endif
#endif // _XOPEN_SOURCE
// xattr support
#if !defined (DISABLE_XATTR)
#if defined (LIBC_XATTR)
#include <sys/xattr.h>
#elif defined (LIBATTR_XATTR)
#include <attr/xattr.h>
#else
#error // neither libc attr nor libattr xattr defined
#endif
#if defined (XATTR_CREATE) && defined (XATTR_REPLACE)
#define HAVE_XATTR
#endif
#endif
#endif // CONF_H_
|