<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 16, 2016, at 2:06 AM, Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" class="">gribozavr@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Could you give some examples?</span></div></blockquote></div><br class=""><div class="">Here are some that I #ifdefed on Linux just today:</div><div class=""><br class=""></div><div class=""><ol class="MailOutline"><li class="">SOCK_STREAM</li><li class="">IPPROTO_TCP</li><li class="">timeval. This is a tricky case, as there are actually 2 types on Darwin (timeval / timeval64), that map to 1 (as far as I know) on Linux.</li><li class="">timeval[64] members, which are in some platforms Int64, in some platforms __darwin_xx and in other platforms Int</li><li class="">SHUT_RDWR</li><li class="">POLLIN etc. is wrong IMO even on Darwin. I opened SR-178 for this (and previously I filed a radar), but since that bug has sat for 2 months (and the radar for longer) without any comment it motivated me to investigate the DIY approach to these simple "importer bugs", as perhaps the core team is too busy.</li></ol><div class=""><br class=""></div><div class="">Obviously I don't expect 100% portability (these are different OSes afterall), but there are several cases where the type differences feel more by accident than by design.</div><div class=""><br class=""></div><div class="">I will probably have a new list in a few days if interested, as I am still battling Linux-specific compile errors :-)</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class=""><br class=""></div></body></html>