aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/compat.h
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 03:26:16 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 03:26:16 +0000
commit9b24e69df6d9bf043bc2b5411497b708843fb04d (patch)
tree1f3193e3fae80882dc4d90585f9832b1897361d5 /include/asterisk/compat.h
parent573194c9fe4ad66a490288d26799d9d090bfb73a (diff)
So apparently, some platforms don't have ffsll(3).
The manpage lies; it says that the function is in POSIX, but that's only for ffs(3), not ffsll(3). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@232164 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r--include/asterisk/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index 8f2512a28..8d973f6c4 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -77,6 +77,10 @@
int __attribute__((format(printf, 2, 3))) asprintf(char **str, const char *fmt, ...);
#endif
+#ifndef HAVE_FFSLL
+int ffsll(long long n);
+#endif
+
#ifndef HAVE_GETLOADAVG
int getloadavg(double *list, int nelem);
#endif