summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-12-06 22:11:02 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-12-06 22:11:02 +0000
commita71c133efb7026da05ac2f7f41a6926bc5824a63 (patch)
treecaa8cefa19803b9912219905c5cc1f2499bb0544 /sys/lib
parent2131988aa3472105a2067d04c42151159fe3515d (diff)
- partially revert previous NENTS removal for arches which got busted.
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libsa/stand.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/lib/libsa/stand.h b/sys/lib/libsa/stand.h
index 3739d911a01..7a44456ee1c 100644
--- a/sys/lib/libsa/stand.h
+++ b/sys/lib/libsa/stand.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stand.h,v 1.48 2010/12/06 18:44:49 jasper Exp $ */
+/* $OpenBSD: stand.h,v 1.49 2010/12/06 22:11:01 jasper Exp $ */
/* $NetBSD: stand.h,v 1.18 1996/11/30 04:35:51 gwr Exp $ */
/*-
@@ -48,6 +48,7 @@ struct open_file;
/*
* Useful macros
*/
+#define NENTS(x) sizeof(x)/sizeof(x[0])
/* don't define if libkern included */
#ifndef LIBKERN_INLINE
#define max(a,b) (((a)>(b))? (a) : (b))