Don't use our version of ffs() if the system has one
This commit is contained in:
parent
af0d5e2ef7
commit
ab17f88506
|
@ -180,7 +180,7 @@ dnl Checks for library functions.
|
||||||
AC_FUNC_VPRINTF
|
AC_FUNC_VPRINTF
|
||||||
AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr \
|
AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr \
|
||||||
strtol getopt getopt_long vsnprintf walkcontext backtrace \
|
strtol getopt getopt_long vsnprintf walkcontext backtrace \
|
||||||
getisax getzoneid shmctl64 strcasestr])
|
getisax getzoneid shmctl64 strcasestr ffs])
|
||||||
AC_FUNC_ALLOCA
|
AC_FUNC_ALLOCA
|
||||||
dnl Old HAS_* names used in os/*.c.
|
dnl Old HAS_* names used in os/*.c.
|
||||||
AC_CHECK_FUNC([getdtablesize],
|
AC_CHECK_FUNC([getdtablesize],
|
||||||
|
|
|
@ -30,6 +30,8 @@ The Open Group.
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_FFS
|
||||||
|
|
||||||
#include "dix.h"
|
#include "dix.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -42,3 +44,5 @@ ffs(int i)
|
||||||
i >>= 1;
|
i >>= 1;
|
||||||
return j;
|
return j;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -433,4 +433,7 @@
|
||||||
/* Need the strcasestr function. */
|
/* Need the strcasestr function. */
|
||||||
#undef NEED_STRCASESTR
|
#undef NEED_STRCASESTR
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `ffs' function. */
|
||||||
|
#undef HAVE_FFS
|
||||||
|
|
||||||
#endif /* _DIX_CONFIG_H_ */
|
#endif /* _DIX_CONFIG_H_ */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user