From: plugwash Date: Fri, 12 Feb 2010 02:21:31 +0000 (+0000) Subject: fix build in various fpc versions on linux X-Git-Url: http://www.lcore.org/git/lcore.git/commitdiff_plain/f102aba78918f31feeb2b3d8a685faa7ebfd20be fix build in various fpc versions on linux git-svn-id: file:///svnroot/lcore/trunk@74 b1de8a11-f9be-4011-bde0-cc7ace90066a --- diff --git a/unixstuff.inc b/unixstuff.inc index 0eb9b3d..773656d 100755 --- a/unixstuff.inc +++ b/unixstuff.inc @@ -22,7 +22,8 @@ {$else} result := invalue; {$endif} - end; + end; + {$define need_v6constants} {$else} {$define sigprocmask := fpsigprocmask} @@ -93,6 +94,7 @@ const IPPROTO_UDP=17; IPPROTO_ICMP=1; + {$define need_v6constants} {$endif} {$ifdef ver1_9} const @@ -110,6 +112,7 @@ result := invalue; {$endif} end; + {$define need_v6constants} {$endif} procedure gettimeofday(var tv:ttimeval);inline; begin @@ -147,4 +150,14 @@ sys_eintr=esyseintr; {$endif} + {$ifdef need_v6constants} + {$ifdef linux} + //the below values are only known correct on linux, I don't support + //1.0.x on any other unix platform atm anyway --plugwash + const + IPPROTO_IPV6 = 41; + IPV6_V6ONLY = 26; + {$endif} + {$endif} {$endif} + \ No newline at end of file