fix default feature profile in tar.h
authorRich Felker <dalias@aerifal.cx>
Wed, 28 Mar 2018 19:53:45 +0000 (15:53 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 28 Mar 2018 19:53:45 +0000 (15:53 -0400)
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.

include/tar.h

index b3c4ba248a9f22e69323a958ad3eaa3fed482590..2eba66ec000afcf1db6e2a5a0dae6143face2846 100644 (file)
@@ -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)