Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/file/src Fix build on FreeBSD < 5.0.



details:   https://anonhg.NetBSD.org/src/rev/ca9497cbe504
branches:  trunk
changeset: 559890:ca9497cbe504
user:      salo <salo%NetBSD.org@localhost>
date:      Thu Mar 25 15:00:24 2004 +0000

description:
Fix build on FreeBSD < 5.0.
>From Alexander Yurchenko via netbsd-bugs.

Approved by pooka@, "I'll bug Christos to get it really fixed some day."

diffstat:

 dist/file/src/file.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r bf6886b9c5be -r ca9497cbe504 dist/file/src/file.c
--- a/dist/file/src/file.c      Thu Mar 25 14:51:28 2004 +0000
+++ b/dist/file/src/file.c      Thu Mar 25 15:00:24 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: file.c,v 1.5 2004/03/23 08:40:12 pooka Exp $   */
+/*     $NetBSD: file.c,v 1.6 2004/03/25 15:00:24 salo Exp $    */
 
 /*
  * Copyright (c) Ian F. Darwin 1986-1995.
@@ -64,6 +64,10 @@
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
 #endif
+/* XXX: FreeBSD prior to 5.0 doesn't have real wchar support */
+#if defined(__FreeBSD_version) && __FreeBSD_version < 500000
+#undef HAVE_WCHAR_H
+#endif
 #ifdef HAVE_WCHAR_H
 #include <wchar.h>
 #endif
@@ -82,7 +86,7 @@
 #if 0
 FILE_RCSID("@(#)Id: file.c,v 1.92 2004/03/22 21:34:39 christos Exp")
 #else
-__RCSID("$NetBSD: file.c,v 1.5 2004/03/23 08:40:12 pooka Exp $");
+__RCSID("$NetBSD: file.c,v 1.6 2004/03/25 15:00:24 salo Exp $");
 #endif
 #endif /* lint */
 



Home | Main Index | Thread Index | Old Index