Mac OS X:如果在编译linux内核时需要头文件,但是os x没有,我应该放在哪里? [英] Mac OS X: If there's a header needed when compile linux kernel, but os x doesn't have, where should I put it to?

查看:101
本文介绍了Mac OS X:如果在编译linux内核时需要头文件,但是os x没有,我应该放在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情况如下:我正在使用Mac编译用于主机板的Linux内核,这是如何发生的:

Here's the situation: I am using a mac to compile Linux kernel for an arm board, some how this happened:

arch/arm/vdso/vdsomunge.c:48:10: fatal error: 'byteswap.h' file not found

我搜索了一下,发现mac没有"byteswap.h",因此我下载了基于其他人写的"OSByteOrder.h"的"byteswap.h"版本,但我不知道在哪里放那个标题.

I googled and find out that mac doesn't have a 'byteswap.h', so I download a 'byteswap.h' version based on 'OSByteOrder.h' write by others, but I don't know where to put that header.

任何人都可以帮忙吗?

推荐答案

我自己回答:将其放在/usr/include中,并解决了问题.

Answer by myself: put it in /usr/include, and problem solved.

这篇关于Mac OS X:如果在编译linux内核时需要头文件,但是os x没有,我应该放在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆