diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-12-02 03:26:16 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-12-02 03:26:16 +0000 |
commit | f46840c107b029d60c01a45938e10b7062081ac6 (patch) | |
tree | 1f3193e3fae80882dc4d90585f9832b1897361d5 /include | |
parent | 08ec550c1673c44e1ef176f2399c7f30d0e30a71 (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: https://origsvn.digium.com/svn/asterisk/trunk@232164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/autoconfig.h.in | 3 | ||||
-rw-r--r-- | include/asterisk/compat.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in index fb38adc6f..706db3ce2 100644 --- a/include/asterisk/autoconfig.h.in +++ b/include/asterisk/autoconfig.h.in @@ -232,6 +232,9 @@ /* Define to the version of the Ffmpeg and avcodec library library. */ #undef HAVE_FFMPEG_VERSION +/* Define to 1 if you have the `ffsll' function. */ +#undef HAVE_FFSLL + /* Define to 1 if you have the `floor' function. */ #undef HAVE_FLOOR 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 |