Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/compat/gen missed one (thanks joerg)
details: https://anonhg.NetBSD.org/src/rev/c5f5ac3873ce
branches: trunk
changeset: 778085:c5f5ac3873ce
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 15 16:47:38 2012 +0000
description:
missed one (thanks joerg)
diffstat:
lib/libc/compat/gen/compat_fts.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 084925d03329 -r c5f5ac3873ce lib/libc/compat/gen/compat_fts.c
--- a/lib/libc/compat/gen/compat_fts.c Thu Mar 15 16:20:36 2012 +0000
+++ b/lib/libc/compat/gen/compat_fts.c Thu Mar 15 16:47:38 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_fts.c,v 1.5 2012/03/13 22:37:51 joerg Exp $ */
+/* $NetBSD: compat_fts.c,v 1.6 2012/03/15 16:47:38 christos Exp $ */
/*
* Written by Jason R. Thorpe <thorpej%NetBSD.org@localhost>, October 21, 1997.
@@ -22,12 +22,14 @@
#define __fts_dev_t uint32_t
#define __fts_level_t short
-#undef fts_namelen_truncate
-#define fts_namelen_truncate(a) \
+#ifndef ftsent_namelen
+#define ftsent_namelen_truncate(a) \
((a) > USHRT_MAX ? USHRT_MAX : (unsigned short)(a))
-#undef fts_pathlen_truncate
+#endif
+#ifndef fts_pathlen_truncate
#define ftsent_pathlen_truncate(a) \
((a) > USHRT_MAX ? USHRT_MAX : (unsigned short)(a))
+#endif
#include <fts.h>
#include <compat/include/fts.h>
Home |
Main Index |
Thread Index |
Old Index