Date: Tue, 12 Jul 2011 21:46:12 +0200 From: Robert Millan <rmh@debian.org> To: freebsd-hackers@freebsd.org, Ed Maste <emaste@freebsd.org> Subject: [PATCH] fake pre-processor macros when building on non-FreeBSD system Message-ID: <CAOfDtXNqydD_hyvo25Arkm=gdqVcSJB8RPfnFL9xozQfS=UeEQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--90e6ba1efd3a6077af04a7e48d27 Content-Type: text/plain; charset=UTF-8 When building kernel code on a non-FreeBSD system, kernel source still expects pre-processor macros to be those of a FreeBSD system. If __linux__ is defined, build will break. If __FreeBSD__ isn't defined, build will break too. This small patch "fakes" the pre-processor macros of FreeBSD so that non-FreeBSD systems such as GNU/Linux can build the kernel of FreeBSD too. -- Robert Millan --90e6ba1efd3a6077af04a7e48d27 Content-Type: text/plain; charset=US-ASCII; name="prepro.diff" Content-Disposition: attachment; filename="prepro.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gq19u68y0 LS0tIGEvc3lzL2NvbmYva2Vybi5wcmUubWsKKysrIGIvc3lzL2NvbmYva2Vybi5wcmUubWsKQEAg LTkwLDYgKzkwLDE0IEBACiAuZW5kaWYKIFdFUlJPUj89IC1XZXJyb3IKIAorLmlmICFkZWZpbmVk KE9QU1lTKQorT1BTWVMhPSB1bmFtZSAtcworLmVuZGlmCisKKy5pZiAke09QU1lTfSAhPSAiRnJl ZUJTRCIKK0NGTEFHUys9IC1VbGludXggLVVfX2xpbnV4X18gLURfX0ZyZWVCU0RfXworLmVuZGlm CisKICMgWFhYIExPQ09SRSBtZWFucyAiZG9uJ3QgZGVjbGFyZSBDIHN0dWZmIiBub3QgImZvciBs b2NvcmUucyIuCiBBU01fQ0ZMQUdTPSAteCBhc3NlbWJsZXItd2l0aC1jcHAgLURMT0NPUkUgJHtD RkxBR1N9CiAKLS0tIGEvc3lzL2NvbmYva21vZC5taworKysgYi9zeXMvY29uZi9rbW9kLm1rCkBA IC05Niw2ICs5NiwxNCBAQAogQ0ZMQUdTKz0JLURfS0VSTkVMCiBDRkxBR1MrPQktREtMRF9NT0RV TEUKIAorLmlmICFkZWZpbmVkKE9QU1lTKQorT1BTWVMhPQkJdW5hbWUgLXMKKy5lbmRpZgorCisu aWYgJHtPUFNZU30gIT0gIkZyZWVCU0QiCitDRkxBR1MrPQktVWxpbnV4IC1VX19saW51eF9fIC1E X19GcmVlQlNEX18KKy5lbmRpZgorCiAjIERvbid0IHVzZSBhbnkgc3RhbmRhcmQgb3Igc291cmNl LXJlbGF0aXZlIGluY2x1ZGUgZGlyZWN0b3JpZXMuCiBDU1REPQkJYzk5CiBOT1NURElOQz0JLW5v c3RkaW5jCg== --90e6ba1efd3a6077af04a7e48d27--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfDtXNqydD_hyvo25Arkm=gdqVcSJB8RPfnFL9xozQfS=UeEQ>