mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
librepace: put #defines after #include "sys/xattr.h"
This avoids redefining the system xattr functions, which should fix MacOS. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Jun 3 09:46:44 CEST 2012 on sn-devel-104
This commit is contained in:
parent
aa08fc066b
commit
d42d4523ed
@ -543,46 +543,6 @@ ssize_t rep_pwrite(int __fd, const void *__buf, size_t __nbytes, off_t __offset)
|
||||
/* prototype is in "system/network.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_GETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
#define getxattr(path, name, value, size) rep_getxattr(path, name, value, size)
|
||||
/* prototype is in "system/filesys.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_FGETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
#define fgetxattr(filedes, name, value, size) rep_fgetxattr(filedes, name, value, size)
|
||||
/* prototype is in "system/filesys.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_LISTXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
#define listxattr(path, list, size) rep_listxattr(path, list, size)
|
||||
/* prototype is in "system/filesys.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_FLISTXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
#define flistxattr(filedes, value, size) rep_flistxattr(filedes, value, size)
|
||||
/* prototype is in "system/filesys.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_REMOVEXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
#define removexattr(path, name) rep_removexattr(path, name)
|
||||
/* prototype is in "system/filesys.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_FREMOVEXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
#define fremovexattr(filedes, name) rep_fremovexattr(filedes, name)
|
||||
/* prototype is in "system/filesys.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_SETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
#define setxattr(path, name, value, size, flags) rep_setxattr(path, name, value, size, flags)
|
||||
/* prototype is in "system/filesys.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_FSETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
#define fsetxattr(filedes, name, value, size, flags) rep_fsetxattr(filedes, name, value, size, flags)
|
||||
/* prototype is in "system/filesys.h" */
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GET_CURRENT_DIR_NAME
|
||||
#define get_current_dir_name rep_get_current_dir_name
|
||||
char *rep_get_current_dir_name(void);
|
||||
|
@ -226,41 +226,49 @@
|
||||
|
||||
#if !defined(HAVE_GETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
ssize_t rep_getxattr (const char *path, const char *name, void *value, size_t size);
|
||||
#define getxattr(path, name, value, size) rep_getxattr(path, name, value, size)
|
||||
/* define is in "replace.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_FGETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
ssize_t rep_fgetxattr (int filedes, const char *name, void *value, size_t size);
|
||||
#define fgetxattr(filedes, name, value, size) rep_fgetxattr(filedes, name, value, size)
|
||||
/* define is in "replace.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_LISTXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
ssize_t rep_listxattr (const char *path, char *list, size_t size);
|
||||
#define listxattr(path, list, size) rep_listxattr(path, list, size)
|
||||
/* define is in "replace.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_FLISTXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
ssize_t rep_flistxattr (int filedes, char *list, size_t size);
|
||||
#define flistxattr(filedes, value, size) rep_flistxattr(filedes, value, size)
|
||||
/* define is in "replace.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_REMOVEXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
int rep_removexattr (const char *path, const char *name);
|
||||
#define removexattr(path, name) rep_removexattr(path, name)
|
||||
/* define is in "replace.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_FREMOVEXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
int rep_fremovexattr (int filedes, const char *name);
|
||||
#define fremovexattr(filedes, name) rep_fremovexattr(filedes, name)
|
||||
/* define is in "replace.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_SETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
int rep_setxattr (const char *path, const char *name, const void *value, size_t size, int flags);
|
||||
#define setxattr(path, name, value, size, flags) rep_setxattr(path, name, value, size, flags)
|
||||
/* define is in "replace.h" */
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_FSETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS)
|
||||
int rep_fsetxattr (int filedes, const char *name, const void *value, size_t size, int flags);
|
||||
#define fsetxattr(filedes, name, value, size, flags) rep_fsetxattr(filedes, name, value, size, flags)
|
||||
/* define is in "replace.h" */
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user