Module Name:    src
Committed By:   joerg
Date:           Sat Sep 17 10:46:52 UTC 2011

Modified Files:
        src/external/bsd/file/dist/src: readcdf.c

Log Message:
Define __arraycount if it doesn't exist.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/file/dist/src/readcdf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/file/dist/src/readcdf.c
diff -u src/external/bsd/file/dist/src/readcdf.c:1.4 src/external/bsd/file/dist/src/readcdf.c:1.5
--- src/external/bsd/file/dist/src/readcdf.c:1.4	Fri Sep 16 21:06:27 2011
+++ src/external/bsd/file/dist/src/readcdf.c	Sat Sep 17 10:46:52 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: readcdf.c,v 1.4 2011/09/16 21:06:27 christos Exp $	*/
+/*	$NetBSD: readcdf.c,v 1.5 2011/09/17 10:46:52 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2008 Christos Zoulas
@@ -31,7 +31,7 @@
 #if 0
 FILE_RCSID("@(#)$File: readcdf.c,v 1.26 2011/08/26 13:38:28 christos Exp $")
 #else
-__RCSID("$NetBSD: readcdf.c,v 1.4 2011/09/16 21:06:27 christos Exp $");
+__RCSID("$NetBSD: readcdf.c,v 1.5 2011/09/17 10:46:52 joerg Exp $");
 #endif
 #endif
 
@@ -44,6 +44,10 @@
 #include "cdf.h"
 #include "magic.h"
 
+#ifndef __arraycount
+#define __arraycount(a) (sizeof(a) / sizeof(a[0]))
+#endif
+
 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0)
 
 private int

Reply via email to