Fix linux syscall detection.
This commit is contained in:
parent
cb07847949
commit
a74f339d17
@ -3,8 +3,11 @@
|
||||
|
||||
#include <linux/version.h>
|
||||
|
||||
#define LINUX_VERSION_CODE_FOR(major, minor, patch) (((major & 255) >> 16) | ((minor & 255) >> 8) | (patch & 255))
|
||||
#define LINUX_VERSION_AT_LEAST(major, minor, patch) (LINUX_VERSION_CODE_FOR(major, minor, patch) >= LINUX_VERSION_CODE)
|
||||
#define LINUX_VERSION_CODE_FOR(major, minor, patch) \
|
||||
(((major & 255) << 16) | ((minor & 255) << 8) | (patch & 255))
|
||||
|
||||
#define LINUX_VERSION_AT_LEAST(major, minor, patch) \
|
||||
(LINUX_VERSION_CODE >= LINUX_VERSION_CODE_FOR(major, minor, patch))
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
@ -3,8 +3,11 @@
|
||||
|
||||
#include <linux/version.h>
|
||||
|
||||
#define LINUX_VERSION_CODE_FOR(major, minor, patch) (((major & 255) >> 16) | ((minor & 255) >> 8) | (patch & 255))
|
||||
#define LINUX_VERSION_AT_LEAST(major, minor, patch) (LINUX_VERSION_CODE_FOR(major, minor, patch) >= LINUX_VERSION_CODE)
|
||||
#define LINUX_VERSION_CODE_FOR(major, minor, patch) \
|
||||
(((major & 255) << 16) | ((minor & 255) << 8) | (patch & 255))
|
||||
|
||||
#define LINUX_VERSION_AT_LEAST(major, minor, patch) \
|
||||
(LINUX_VERSION_CODE >= LINUX_VERSION_CODE_FOR(major, minor, patch))
|
||||
|
||||
/* Define to 1 if you have the `clock_gettime' function. */
|
||||
/* #undef HAVE_CLOCK_GETTIME */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user