freebsd_network: Avoid clashes between local and system ffs() definition.
This commit is contained in:
@@ -6,9 +6,11 @@
|
|||||||
#define _FBSD_COMPAT_SYS_LIBKERN_H_
|
#define _FBSD_COMPAT_SYS_LIBKERN_H_
|
||||||
|
|
||||||
|
|
||||||
|
#include <strings.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|
||||||
@@ -26,8 +28,6 @@ static __inline int imin(int a, int b) { return (a < b ? a : b); }
|
|||||||
extern int abs(int a);
|
extern int abs(int a);
|
||||||
|
|
||||||
|
|
||||||
#define ffs(x) __builtin_ffs(x)
|
|
||||||
|
|
||||||
static __inline __pure2 int
|
static __inline __pure2 int
|
||||||
ffsl(long mask)
|
ffsl(long mask)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user