Module Name: src
Committed By: joerg
Date: Tue Jul 21 17:37:51 UTC 2009
Modified Files:
src/common/lib/libc/string: popcount32.c
Log Message:
Include limits.h.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/string/popcount32.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/common/lib/libc/string/popcount32.c
diff -u src/common/lib/libc/string/popcount32.c:1.1 src/common/lib/libc/string/popcount32.c:1.2
--- src/common/lib/libc/string/popcount32.c:1.1 Tue Jul 21 14:55:32 2009
+++ src/common/lib/libc/string/popcount32.c Tue Jul 21 17:37:51 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: popcount32.c,v 1.1 2009/07/21 14:55:32 joerg Exp $ */
+/* $NetBSD: popcount32.c,v 1.2 2009/07/21 17:37:51 joerg Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -32,12 +32,14 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: popcount32.c,v 1.1 2009/07/21 14:55:32 joerg Exp $");
+__RCSID("$NetBSD: popcount32.c,v 1.2 2009/07/21 17:37:51 joerg Exp $");
#if !defined(_KERNEL) && !defined(_STANDALONE)
+#include <limits.h>
#include <strings.h>
#else
#include <lib/libkern/libkern.h>
+#include <machine/limits.h>
#endif
/*
@@ -66,7 +68,7 @@
return c;
}
-#if UINT_MAX == 0xffffffffUL
+#if UINT_MAX == 0xffffffffU
__strong_alias(popcount, popcount32);
#endif