summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-03-28 15:53:45 -0400
committerRich Felker <dalias@aerifal.cx>2018-03-28 15:53:45 -0400
commit729fef0a9358e2f6f1cd8c75a1a0f7ee48b08c95 (patch)
treeacb67dedb55dfe1cf261d7e704d29b881855afc1
parentc7bb9c41d2e62b7ad1c7858d4d0f2873642e634b (diff)
downloadmusl-729fef0a9358e2f6f1cd8c75a1a0f7ee48b08c95.tar.gz
fix default feature profile in tar.h
commit d93c0740d86aaf7043e79b942a6c0b3f576af4c8 added use of feature test macros without including features.h, causing a definition that should be exposed in the default profile, TSVTX, to appear only when _XOPEN_SOURCE or higher is explicitly defined.
-rw-r--r--include/tar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tar.h b/include/tar.h
index b3c4ba24..2eba66ec 100644
--- a/include/tar.h
+++ b/include/tar.h
@@ -1,6 +1,8 @@
#ifndef _TAR_H
#define _TAR_H
+#include <features.h>
+
#define TSUID 04000
#define TSGID 02000
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_XOPEN_SOURCE)