Don't use our version of ffs() if the system has one

This commit is contained in:
Julien Cristau 2008-09-22 01:59:31 +02:00
parent af0d5e2ef7
commit ab17f88506
3 changed files with 8 additions and 1 deletions

View File

@ -180,7 +180,7 @@ dnl Checks for library functions.
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr \
strtol getopt getopt_long vsnprintf walkcontext backtrace \
getisax getzoneid shmctl64 strcasestr])
getisax getzoneid shmctl64 strcasestr ffs])
AC_FUNC_ALLOCA
dnl Old HAS_* names used in os/*.c.
AC_CHECK_FUNC([getdtablesize],

View File

@ -30,6 +30,8 @@ The Open Group.
#include <dix-config.h>
#endif
#ifndef HAVE_FFS
#include "dix.h"
int
@ -42,3 +44,5 @@ ffs(int i)
i >>= 1;
return j;
}
#endif

View File

@ -433,4 +433,7 @@
/* Need the strcasestr function. */
#undef NEED_STRCASESTR
/* Define to 1 if you have the `ffs' function. */
#undef HAVE_FFS
#endif /* _DIX_CONFIG_H_ */