aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2004-02-16 18:37:00 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2004-02-16 18:37:00 +0000
commitb14160b848cc09149dda489800b32c8bea1aa127 (patch)
tree7221ca4be6971108cfe6b35d757fa661ec989a04 /sys
parent9e6108885c80759bea77bf463dfca2783cb3be98 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/libkern.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h
index e4a7880a46af..48fd4b17d486 100644
--- a/sys/sys/libkern.h
+++ b/sys/sys/libkern.h
@@ -77,15 +77,23 @@ void *bsearch(const void *, const void *, size_t,
#ifndef HAVE_INLINE_FFS
int ffs(int);
#endif
+#if (__UINT_MAX == __ULONG_MAX)
+#define ffsl(x) ffs((x))
+#else
#ifndef HAVE_INLINE_FFSL
int ffsl(long);
#endif
+#endif
#ifndef HAVE_INLINE_FLS
int fls(int);
#endif
+#if (__UINT_MAX == __ULONG_MAX)
+#define flsl(x) fls((x))
+#else
#ifndef HAVE_INLINE_FLSL
int flsl(long);
#endif
+#endif
int fnmatch(const char *, const char *, int);
int locc(int, char *, u_int);
void qsort(void *base, size_t nmemb, size_t size,