This is an archive of the discontinued LLVM Phabricator instance.

Fix declaration of struct rtentry and SIOCADDRT/DELRT ioctls on certain FreeBSD versions
AbandonedPublic

Authored by dim on Aug 11 2014, 1:26 PM.

Details

Summary

This fixes the declaration of struct rtentry, and the SIOCADDRT/DELRT ioctls on certain FreeBSD versions.

Diff Detail

Event Timeline

dim updated this revision to Diff 12366.Aug 11 2014, 1:26 PM
dim retitled this revision from to Fix declaration of struct rtentry and SIOCADDRT/DELRT ioctls on certain FreeBSD versions.
dim updated this object.
dim edited the test plan for this revision. (Show Details)
dim added a reviewer: kutuzov.viktor.84.
dim added a subscriber: Unknown Object (MLST).
emaste added a subscriber: emaste.Aug 11 2014, 2:24 PM

Please upload this diff with full context as described at:

http://llvm.org/docs/Phabricator.html#id3

lib/sanitizer_common/sanitizer_platform_limits_posix.cc
661

Should we define these for Linux as well?

dim updated this revision to Diff 12392.Aug 12 2014, 5:38 AM
dim edited edge metadata.
lib/sanitizer_common/sanitizer_platform_limits_posix.cc
36

It appears SANITIZER_FREEBSD_RTENTRY is not defined on MAC and Linux. I would expect it to expand to 0 on these platforms.

378

Looks like it should be:

#if SANITIZER_LINUX || SANITIZER_FREEBSD_RTENTRY
661
#if SANITIZER_LINUX || SANITIZER_FREEBSD_RTENTRY ?
dim abandoned this revision.Jan 27 2017, 1:06 PM

Solved in a different manner, in the mean time.