Switch to unified view

a/src/utils/pxattr.cpp b/src/utils/pxattr.cpp
...
...
38
// If the platform is not known yet, let this file be empty instead of
38
// If the platform is not known yet, let this file be empty instead of
39
// breaking the compile, this will let the build work if the rest of
39
// breaking the compile, this will let the build work if the rest of
40
// the software is not actually calling us. If it does call us, this
40
// the software is not actually calling us. If it does call us, this
41
// will bring attention to the necessity of a port.
41
// will bring attention to the necessity of a port.
42
//
42
//
43
// If the platform is known not supporting extattrs (e.g.__OpenBSD__),
43
// If the platform is known not to support extattrs (e.g.__OpenBSD__),
44
// just let the methods return errors (like they would on a non-xattr
44
// just let the methods return errors (like they would on a non-xattr
45
// fs on e.g. linux)
45
// fs on e.g. linux)
46
47
#if defined(__DragonFly__) || defined(__OpenBSD__)
48
#define HAS_NO_XATTR
49
#endif
50
46
#if defined(__FreeBSD__) || defined(PXALINUX) || defined(__APPLE__) \
51
#if defined(__FreeBSD__) || defined(PXALINUX) || defined(__APPLE__) \
47
    || defined(__OpenBSD__)
52
    || defined(HAS_NO_XATTR)
48
53
49
54
50
#ifndef TEST_PXATTR
55
#ifndef TEST_PXATTR
51
#include <sys/types.h>
56
#include <sys/types.h>
52
#include <errno.h>
57
#include <errno.h>
...
...
58
#include <sys/uio.h>
63
#include <sys/uio.h>
59
#elif defined(PXALINUX)
64
#elif defined(PXALINUX)
60
#include <sys/xattr.h>
65
#include <sys/xattr.h>
61
#elif defined(__APPLE__)
66
#elif defined(__APPLE__)
62
#include <sys/xattr.h>
67
#include <sys/xattr.h>
63
#elif defined(__OpenBSD__)
68
#elif defined(HAS_NO_XATTR)
64
#else
69
#else
65
#error "Unknown system can't compile"
70
#error "Unknown system can't compile"
66
#endif
71
#endif
67
72
68
#include "pxattr.h"
73
#include "pxattr.h"