[Xastir-Dev] Wondering about lines in src/interface.c

Jack Twilley jmt at twilley.org
Fri Mar 14 18:15:02 EST 2003


I'm looking at some lines in src/interface.c and am searching for
enlightenment:

#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 3
    port_data[port].channel = socket(PF_INET, SOCK_DGRAM, htons(proto));   // proto = AF_AX25
#else   // __GLIBC__ >= 2 && __GLIBC_MINOR >= 3
    port_data[port].channel = socket(PF_INET, SOCK_PACKET, htons(proto));
#endif      // __GLIBC__ >= 2 && __GLIBC_MINOR >= 3

Could the author of this chunk of code contact me off-list and explain
to me what they were thinking?  It isn't a horrible thing, but I'm
trying to update the tests for functionality instead of versions and
I'm wary of messing with this until I can learn more about why it's so
special.

I'm almost tempted to run a Linux box at home with AX.25 just to test
this stuff.

Jack.
-- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://xastir.org/pipermail/xastir-dev/attachments/20030314/e9ca3384/attachment.sig>


More information about the Xastir-dev mailing list