Fix compiler-rt build on FreeBSD 10.1
authorEd Maste <emaste@freebsd.org>
Tue, 14 Oct 2014 21:08:35 +0000 (21:08 +0000)
committerEd Maste <emaste@freebsd.org>
Tue, 14 Oct 2014 21:08:35 +0000 (21:08 +0000)
commit3ba162d2f9e955cb3ebf4a246e259f2c31ea4c8e
treef09b12b08ac74ecc448f7a5d4d9bb8f58fc529f3
parent498b223eec9a7060f897633e72b8e0a14f937024
Fix compiler-rt build on FreeBSD 10.1

We have to #define _WANT_RTENTRY to get struct rtentry, and add headers
that it depends on.

SIOCADDRT and SIOCDELRT also do not exist in FreeBSD 10.1 and were removed
in FreeBSD rev. 263203:

  Garbage collect long time obsoleted (or never used) stuff from routing
  API.

Differential Revision: http://reviews.llvm.org/D5703

llvm-svn: 219722
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc