summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-09-20 14:33:48 +0000
committerache <ache@FreeBSD.org>1996-09-20 14:33:48 +0000
commitee80f48141a860d5f619a0ff178d0b4d65363a75 (patch)
tree955fec37dc722f08c5881ec830509ab5bf582596 /gnu/usr.bin
parent95da9969a4855cd0e5d6ffe12a7bcce566e13fc6 (diff)
downloadFreeBSD-src-ee80f48141a860d5f619a0ff178d0b4d65363a75.zip
FreeBSD-src-ee80f48141a860d5f619a0ff178d0b4d65363a75.tar.gz
Replace GNU-made __P definition by standard from sys/cdefs.h
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/tar/fnmatch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/tar/fnmatch.h b/gnu/usr.bin/tar/fnmatch.h
index d4150a9..ffb2188 100644
--- a/gnu/usr.bin/tar/fnmatch.h
+++ b/gnu/usr.bin/tar/fnmatch.h
@@ -23,6 +23,9 @@ Cambridge, MA 02139, USA. */
extern "C" {
#endif
+#ifdef __FreeBSD__
+#include <sys/cdefs.h>
+#else
#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
#undef __P
#define __P(args) args
@@ -32,6 +35,7 @@ extern "C" {
#undef const
#define const
#endif /* C++ or ANSI C. */
+#endif
/* Bits set in the FLAGS argument to `fnmatch'. */
#ifdef FNM_PATHNAME /* Because it is already defined in <unistd.h> */
OpenPOWER on IntegriCloud