Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/msdosfs Only use MALLOC_DECLARE if it exists. Helps w...



details:   https://anonhg.NetBSD.org/src/rev/3cd2b2d6ed55
branches:  trunk
changeset: 773479:3cd2b2d6ed55
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Feb 03 04:29:17 2012 +0000

description:
Only use MALLOC_DECLARE if it exists. Helps with the dirty _KERNEL
tricks fstat is using.

diffstat:

 sys/fs/msdosfs/msdosfsmount.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 3603c2405c57 -r 3cd2b2d6ed55 sys/fs/msdosfs/msdosfsmount.h
--- a/sys/fs/msdosfs/msdosfsmount.h     Fri Feb 03 04:28:55 2012 +0000
+++ b/sys/fs/msdosfs/msdosfsmount.h     Fri Feb 03 04:29:17 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfsmount.h,v 1.15 2008/06/28 01:34:05 rumble Exp $ */
+/*     $NetBSD: msdosfsmount.h,v 1.16 2012/02/03 04:29:17 joerg Exp $  */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -92,8 +92,10 @@
 
 #ifdef _KERNEL
 #include <sys/mallocvar.h>
+#ifdef MALLOC_DECLARE
 MALLOC_DECLARE(M_MSDOSFSMNT);
 MALLOC_DECLARE(M_MSDOSFSTMP);
+#endif
 
 /*
  * Layout of the mount control block for a msdos file system.



Home | Main Index | Thread Index | Old Index