diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-11-05 14:07:38 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-11-05 14:07:38 +0100 |
commit | 95719fbea6acf52d03b17de742f16be8f1f0ce70 (patch) | |
tree | 00092046ba3080c7813dff31bd6d3155a83fe326 /src/xattr.h | |
parent | fbf51696ef1435cf358943c671ac55944ccec26c (diff) |
xattr: add configure check and #ifdefs
setxattr is a glibc call to set extended attributes, so configure now
checks for it and the code is adapted to only build when the
functionality is present.
Diffstat (limited to 'src/xattr.h')
-rw-r--r-- | src/xattr.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/xattr.h b/src/xattr.h index 30673973c..df62066c8 100644 --- a/src/xattr.h +++ b/src/xattr.h @@ -1 +1,26 @@ +#ifndef __XATTR_H +#define __XATTR_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 2010, Daniel Stenberg, <daniel@haxx.se>, et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ int write_xattr( CURL *curl, const char *filename ); + +#endif |