未验证 提交 c007aaa2 编写于 作者: Y YangLiang 提交者: GitHub

rune/libenclave/skeleton: Fix a compilation error

In the GNU C Library, "major" is defined by <sys/sysmacros.h> starting from glibc-2.25,
the macros major and minor are only available in <sys/sysmacros.h>. This fix is for historical compatibility.
Signed-off-by: NLiang Yang <liang3.yang@intel.com>
上级 39de8dbe
......@@ -14,7 +14,11 @@
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 25
#include <sys/types.h>
#else
#include <sys/sysmacros.h>
#endif
#include "defines.h"
#include "sgx_call.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册