summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/tar.h
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-04-03 17:25:56 -0500
committerYaakov Selkowitz <yselkowi@redhat.com>2016-04-04 10:25:29 -0500
commit9e277154ab7f8afef61fd7a8a8840a21ce8be37a (patch)
treec90c09103162611910f70c3f1937639d5841c626 /newlib/libc/include/tar.h
parent3f00f4f9fc10cc638bc25b9290a32f286d8011ab (diff)
downloadcygnal-9e277154ab7f8afef61fd7a8a8840a21ce8be37a.tar.gz
cygnal-9e277154ab7f8afef61fd7a8a8840a21ce8be37a.tar.bz2
cygnal-9e277154ab7f8afef61fd7a8a8840a21ce8be37a.zip
Feature test macros overhaul: tar.h
TSVTX was marked XSI beginning with SUSv3, compare: http://pubs.opengroup.org/onlinepubs/007908799/xsh/tar.h.html http://pubs.opengroup.org/onlinepubs/009695399/basedefs/tar.h.html http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/tar.h.html Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/include/tar.h')
-rw-r--r--newlib/libc/include/tar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/tar.h b/newlib/libc/include/tar.h
index 07b06dd7f..36437fc38 100644
--- a/newlib/libc/include/tar.h
+++ b/newlib/libc/include/tar.h
@@ -5,6 +5,8 @@
#ifndef _TAR_H
#define _TAR_H
+#include <sys/features.h>
+
/* General definitions */
#define TMAGIC "ustar" /* ustar plus null byte. */
#define TMAGLEN 6 /* Length of the above. */
@@ -25,7 +27,9 @@
/* Mode field bit definitions (octal) */
#define TSUID 04000 /* Set UID on execution. */
#define TSGID 02000 /* Set GID on execution. */
+#if __XSI_VISIBLE || __POSIX_VISIBLE < 200112
#define TSVTX 01000 /* On directories, restricted deletion flag. */
+#endif
#define TUREAD 00400 /* Read by owner. */
#define TUWRITE 00200 /* Write by owner. */
#define TUEXEC 00100 /* Execute/search by owner. */