Fix compilation on Linux kernels or glibc versions lacking sync_file_range().
Fix compilation on Linux kernels or glibc versions lacking sync_file_range().

This fixes issue #667.

Many thanks to Didier Spezia for the fix.

xuguruogu/redis,buobao/redis-3.0-annotated,tellapart/redis,Aaron1992/redis,StevenTsai/redis,josiahcarlson/redis,HunanTV/redis,0x20h/redis,xuzhezhaozhao/redis_reading,ketor/redis,j0hnma/szredis,190235047/redis,h0x91b/redis,j0hnma/szredis,badboy/redis,ofirluzon/redis,tzq668766/redis-3.0-annotated,cnbin/redis,honestme/redis,h0x91b/redis,timothyohare/3rdPartySrc-redis,0x55/redis-3.0-annotated,jingjidejuren/redis,jacklee0810/annotated_redis_source,mpalmer/redis,mengyou0304/redis,mingyaaaa/redis,splitice/redis,takeshineshiro/redis,xujunhai1991/redis,HouKangkang/redis-3.0-annotated,AALEKH/redis,kmiku7/redis,JoeWoo/redis,0x55/redis-3.0-annotated,programmecat/redis,ChaosCoo/annotated_redis_source,MOON-CLJ/redis,a-pavlov/redis,wujf/redis,zczhuohuo/redis,gilala/hbjredis,xujunhai1991/redis,izhoujie/redis,gaoxianglong/redis,GitHubMota/redis,tzq668766/redis-3.0-annotated,rrsean/redis-3.0-annotated,YuanZhewei/redis,rouzier/redis,josiahcarlson/redis,allengaller/redis,haima-zju/redis-3.0-annotated,WorkingOfTimtohyZhang/redis-3.0-annotated,PradheepShrinivasan/redis,gspandy/annotated_redis_source,programmecat/redis,programmecat/redis,Markgorden/redis,oranagra/redis,narma/redis,spearhead-ea/redis,roth1002/redis,honestme/redis,gilala/redis,zguangyu/redis,jacklee0810/redis-3.0-annotated,splitice/redis,splitice/redis,wuyu201321060203/redis-3.0-annotated,neomantra/redis,healerkx/redis,mengzhejin/RedisStudy,allengaller/redis,tellapart/redis,xlzhan/redis,jbochi/redis,ouyangkongtong/redis,xuguruogu/redis,soveran/redis,xuzhezhaozhao/redis_reading,dayuoba/redis,citusdata/redis,soveran/redis,valdsJohn/redis,ton31337/redis,fengshao0907/redis-3.0-annotated,gilala/redis,takeshineshiro/redis,wprice/redis,louisliangjun/redis,zguangyu/redis,shreesundara/redis,ncopa/redis,tjschuck/redis,nuxeh/redis,francischan714/redis,wbailey5/redis,AplayER/redis,magastzheng/redis-3.0-annotated,yuhc/redis-benchmark-enhanced,a-pavlov/redis,tjschuck/redis,MSOpenTech/redis,alenslan/redis,fengshao0907/redis,wangyikai/redis,pkdevbox/redis,slfs007/mk-redis,kaushik94/redis,mpalmer/redis,alenslan/redis,gaoxianglong/redis,holstvoogd/redis,4396/redis,tidatida/annotated_redis_source,francischan714/redis,huangz1990/experiment-redis,jingjidejuren/redis,hgl888/redis,Hailei/redis,YongMan/redis,RepmujNetsik/redis,taoguan/redis,aim-for-better/redis,Soledad89/redis,zhoudayang/redis,valdsJohn/redis,GitHubMota/redis,aim-for-better/redis,jxwr/redis,harrisonfeng/redis,hedisdb/hedis,tellapart/redis,seandsky/redis,blackmady/redis,Markgorden/redis,kaushik94/redis,Markgorden/redis,whille/redis-3.0-annotated,davidradunz/redis,splitice/redis,unasm/redis-3.0-annotated,pietern/redis,gilala/hbjredis,idning/redis,iandyh/redis,harrisonfeng/redis,huangz1990/annotated_redis_source,pedigree/redis,holstvoogd/redis,yuhc/redis-benchmark-enhanced,himoca/redis,RepmujNetsik/redis,yybirdcf/learn-redis,ofirluzon/redis,AplayER/redis,twskipper/redis,huyuezheng/redis,july2993/redis,elkingtonmcb/redis,duanx/redis,danny200309/annotated_redis_source,kmiku7/redis,xuzhezhaozhao/redis_reading,ErikDubbelboer/redis,narma/redis,magastzheng/redis-3.0-annotated,darksideofthemoo/redis-histogram,NBSW/redis,oranagra/redis,rogerlz/redis,janekmi/redis,saisai/redis,fankeke/redis-3.0-annotated,j0hnma/szredis,soveran/redis,Aliceljm1/redis-3.0-annotated,pedigree/redis,netroby/redis,soloestoy/redis,Soledad89/redis,gilala/hredis,ttuna/msot-redis,z-fork/redis,jbochi/parallel_redis,seppo0010/redis,ctripcorp/redis,LongXQ/redis,fengshao0907/redis-3.0-annotated,darksideofthemoo/redis-histogram,simplestbest/redis,janekmi/redis,devaos/redis,zhiliaoniu/redis,holstvoogd/redis,wuxiaowei907/annotated_redis_source,ChanningDuan/annotated_redis_source,iandyh/redis,abhiklodh/redis,mumingv/redis,yossigo/redis,ChaosCoo/annotated_redis_source,arijitvt/redis,gechong/redis-3.0-annotated,HunanTV/redis,ofirluzon/redis,xujunhai1991/redis,tidatida/annotated_redis_source,zhiliaoniu/redis,jingjidejuren/redis,pcarrier/redis,huyuezheng/redis,mgk/redis,z-fork/redis,kensou97/redis,vincent-vivian-liu/redis,ramonsnir/redis,mumingv/redis-3.0-annotated,spinlock/redis,AplayER/redis,francischan714/redis,rogerchina/redis,h0x91b/redis,july2993/redis,wbailey5/redis,josiahcarlson/redis,supasate/redis,HouKangkang/redis-3.0-annotated,zhoudayang/redis,hhli/redis,GitHubMota/redis,spinlock/redis,SummonY/redis,YuraLukashik/redis,jasonkying/redis,Wangyao14cyy/redis,AALEKH/redis,janekmi/redis,rogerlz/redis,seandsky/redis,machicao2013/redis-source-annotated,blackmady/redis,charsyam/redis,takeshineshiro/redis,yossigo/redis,hedisdb/hedis,badboy/redis,zczhuohuo/redis,hawkchch/redis,YuanZhewei/redis,antirez/redis,aim-for-better/redis,SummonY/redis,a-pavlov/redis,OmarQunsul/graph-redis,hornen/redis,badboy/redis,gilala/hredis,cloudrain21/redis,shining-yang/redis,z-fork/redis,ChanningDuan/annotated_redis_source,j0hnma/hszredis,programmecat/redis,shining-yang/redis,ctripcorp/redis,hhli/redis,linfangrong/redis,clamoriniere1A/redis,gilala/bjredis,moonbingbing/redis-3.0-annotated,dreamquster/redis,healerkx/redis,MSOpenTech/redis,elkingtonmcb/redis,huangz1990/annotated_redis_source,clamoriniere1A/redis,citusdata/redis,Aaron1992/redis,mumingv/redis,seppo0010/rlite-server,itugs/redis,hawkchch/redis,MasahikoSawada/redis,adamweixuan/redis-3.0-annotated,charsyam/redis,OmarQunsul/graph-redis,CodeJuan/redis,jackyan/redis,seppo0010/redis,zy416548283/redis-3.0-annotated,riyan8250/redis,vincent-vivian-liu/redis,StevenTsai/redis,j0hnma/hszredis,0x20h/redis,twskipper/redis,antirez/redis,ramonsnir/redis,spearhead-ea/redis,neomantra/redis,j0hnma/hszredis,ton31337/redis,alenslan/redis,ctripcorp/redis,jacklee0810/redis-3.0-annotated,HouKangkang/redis-3.0-annotated,dongqifan2/redis-3.0-annotated,MSOpenTech/redis,mcanthony/redis,miaoyc1989/redis-3.0-annotated,valdsJohn/redis,LongXQ/redis,dramenk/annotated_redis_source,kensou97/redis,miaoyc1989/redis-3.0-annotated,shining-yang/redis,Sciumo/redis,hornen/redis,itugs/redis,NBSW/redis,mverrilli/redis,universsky/redis,thomasdarimont/redis,oranagra/redis,4396/redis,MasahikoSawada/redis,idning/redis,jasonkying/redis,pietern/redis,tzq668766/redis-3.0-annotated,zhaobo1023/redis-3.0-annotated,mengzhejin/RedisStudy,ituncle/redis,NBSW/redis,zhcy/redis,darksideofthemoo/redis-histogram,4396/redis,190235047/redis,mverrilli/redis,tanghaodong25/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,mgk/redis,francischan714/redis,pkdevbox/redis,PKRoma/redis,Aliceljm1/redis,harrisonfeng/redis,supasate/redis,Aliceljm1/redis,whille/redis-3.0-annotated,AALEKH/redis,sunlianqiang/redis-3.0-annotated,jxwr/redis,wujf/redis,MOON-CLJ/redis,louisliangjun/redis,darksideofthemoo/redis-histogram,mumingv/redis,pedigree/redis,Hailei/redis,hhli/redis,vincent-vivian-liu/redis,gongice/redis-3.0-annotated,seandsky/redis,xujunhai1991/redis,drinkthere/redis-3.0-annotated,devaos/redis,neomantra/redis,gilala/redis,kmiku7/redis,spinlock/redis,ituncle/redis,ketor/redis,sunlianqiang/redis-3.0-annotated,hgl888/redis,arijitvt/redis,brg-liuwei/redis,qiyang0221/redis,elkingtonmcb/redis,pcarrier/redis,nnog/redis,danny200309/annotated_redis_source,ytjiang/redis,wbailey5/redis,JoeWoo/redis,GrimDerp/redis,190235047/redis,takeshineshiro/redis,netroby/redis,janekmi/redis,weizijun/redis,qiyang0221/redis,cloudrain21/redis,dramenk/annotated_redis_source,ipmobiletech/redis,JoeWoo/redis,charsyam/redis,zhiliaoniu/redis,jackyan/redis,kmiku7/redis,rouzier/redis,yossigo/redis,PradheepShrinivasan/redis,linfangrong/redis,wangyikai/redis,Wangyao14cyy/redis,sunlianqiang/redis-3.0-annotated,msn217/redis-3.0-annotated,fengshao0907/redis,NBSW/redis,jacklee0810/annotated_redis_source,RepmujNetsik/redis,rouzier/redis,antirez/redis,cusspvz/redis,0x20h/redis,shshlzh/redis-3.0-annotated,timothyohare/3rdPartySrc-redis,weizijun/redis,magastzheng/redis-3.0-annotated,harrisonfeng/redis,zhoudayang/redis,mcanthony/redis,onlymellb/redis-3.0-annotated,july2993/redis,gilala/bjredis,ton31337/redis,fengshao0907/annotated_redis_source,supasate/redis,universsky/redis,drinkthere/redis-3.0-annotated,maodeyi/redis_lua,abhiklodh/redis,tanghaodong25/redis,flashbuckets/redis,yuzhangjob/redis-3.0-annotated-unstable,Markgorden/redis,mengyou0304/redis,machicao2013/redis-source-annotated,StevenTsai/redis,weizijun/redis,colstrom/redis,allengaller/redis,PKRoma/redis,hgl888/redis,seppo0010/rlite-server,wuxiaowei907/annotated_redis_source,jbochi/parallel_redis,narma/redis,YongMan/redis,charsyam/redis,jermnelson/redis,jbochi/redis,unasm/redis-3.0-annotated,cloudrain21/redis,YuraLukashik/redis,spinlock/redis,HeartSaVioR/redis,flashbuckets/redis,universsky/redis,zy416548283/redis-3.0-annotated,soveran/redis,neomantra/redis,nnog/redis,gechong/redis-3.0-annotated,PradheepShrinivasan/redis,dramenk/annotated_redis_source,oranagra/redis,zczhuohuo/redis,pmem/redis,shining-yang/redis,kaushik94/redis,yossigo/redis,a-pavlov/redis,ituncle/redis,wangyikai/redis,haima-zju/redis-3.0-annotated,pietern/redis,gilala/hbjredis,duanx/redis,mengyou0304/redis,jxwr/redis,sunheehnus/redis,tjschuck/redis,guker/redis,saisai/redis,mattsta/redis,csuhawk/redis,timothyohare/3rdPartySrc-redis,dongqifan2/redis-3.0-annotated,timothyohare/3rdPartySrc-redis,colstrom/redis,atreeyang/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,YongMan/redis,yuhc/redis-benchmark-enhanced,zhcy/redis,ketor/redis,itamarhaber/redis,modulexcite/redis,GrimDerp/redis,mengzhejin/RedisStudy,oranagra/redis,honestme/redis,cusspvz/redis,machicao2013/redis-source-annotated,ytjiang/redis,xuguruogu/redis,ErikDubbelboer/redis,wenxueliu/redis_comment,0x55/redis-3.0-annotated,jbochi/parallel_redis,Hailei/redis,hornen/redis,rogerchina/redis,linfangrong/redis,fengshao0907/annotated_redis_source,yuzhangjob/redis-3.0-annotated-unstable,zczhuohuo/redis,buobao/redis-3.0-annotated,mumingv/redis-3.0-annotated,mpalmer/redis,ksarch-saas/redis,himoca/redis,msn217/redis-3.0-annotated,xlzhan/redis,davidradunz/redis,viongpanzi/annotated_redis_source,shshlzh/redis-3.0-annotated,unasm/redis-3.0-annotated,modulexcite/redis,csuhawk/redis,iandyh/redis,mgk/redis,dongqifan2/redis-3.0-annotated,seppo0010/redis,duanx/redis,dayuoba/redis,shreesundara/redis,taoguan/redis,tanghaodong25/redis,simplestbest/redis,ttuna/msot-redis,ouyangkongtong/redis,Sciumo/redis,HeartSaVioR/redis,pcarrier/redis,july2993/redis,mengzhejin/RedisStudy,ReadCode/redis-3.0-annotated,MSOpenTech/redis,pietern/redis,mcanthony/redis,shreesundara/redis,linfangrong/redis,ttuna/msot-redis,Sciumo/redis,healerkx/redis,netroby/redis,mverrilli/redis,izhoujie/redis,sunheehnus/redis,shshlzh/redis-3.0-annotated,PKRoma/redis,shshlzh/redis-3.0-annotated,wenxueliu/redis_comment,RepmujNetsik/redis,qiyang0221/redis,maodeyi/redis_lua,rrsean/redis-3.0-annotated,hedisdb/hedis,colstrom/redis,MOON-CLJ/redis,devaos/redis,qiyang0221/redis,huangz1990/redis-3.0-annotated,ncopa/redis,ChaosCoo/annotated_redis_source,izhoujie/redis,gaoxianglong/redis,supasate/redis,huyuezheng/redis,nuxeh/redis,xlzhan/redis,dayuoba/redis,ituncle/redis,idning/redis,j0hnma/szredis,ofirluzon/redis,danny200309/annotated_redis_source,neomantra/redis,devaos/redis,ouyangkongtong/redis,valdsJohn/redis,hedisdb/hedis,CodeJuan/redis,ErikDubbelboer/redis,figoxu/annotated_redis_source,universsky/redis,arijitvt/redis,msn217/redis-3.0-annotated,OmarQunsul/graph-redis,GrimDerp/redis,YuraLukashik/redis,sunheehnus/redis,YuraLukashik/redis,mattsta/redis,zhaobo1023/redis-3.0-annotated,blackmady/redis,thomasdarimont/redis,soloestoy/redis,gongice/redis-3.0-annotated,yybirdcf/learn-redis,saisai/redis,roth1002/redis,gspandy/annotated_redis_source,nnog/redis,brg-liuwei/redis,guker/redis,PradheepShrinivasan/redis,pmem/redis,jbochi/redis,xuzhezhaozhao/redis_reading,0x55/redis-3.0-annotated,pedigree/redis,HunanTV/redis,pkdevbox/redis,huangz1990/annotated_redis_source,h0x91b/redis,simplestbest/redis,riyan8250/redis,wprice/redis,ipmobiletech/redis,sunheehnus/redis,yuzhangjob/redis-3.0-annotated-unstable,abhiklodh/redis,abhiklodh/redis,viongpanzi/annotated_redis_source,wuyu201321060203/redis-3.0-annotated,alenslan/redis,thomasdarimont/redis,holstvoogd/redis,thomasdarimont/redis,moonbingbing/redis-3.0-annotated,citusdata/redis,vincent-vivian-liu/redis,machicao2013/redis-source-annotated,flashbuckets/redis,soloestoy/redis,Aliceljm1/redis-3.0-annotated,SyntaxStacks/redis,CodeJuan/redis,nilyang/redis-tdd-annotation,gilala/hredis,gilala/bjredis,colstrom/redis,mattsta/redis,Hailei/redis,ofirluzon/redis,mumingv/redis,mumingv/redis-3.0-annotated,SyntaxStacks/redis,nilyang/redis-tdd-annotation,hawkchch/redis,soloestoy/redis,itamarhaber/redis,wuxiaowei907/annotated_redis_source,whille/redis-3.0-annotated,huyuezheng/redis,huangz1990/redis-3.0-annotated,mpalmer/redis,rogerchina/redis,yuhc/redis-benchmark-enhanced,CodeJuan/redis,nilyang/redis-tdd-annotation,gspandy/annotated_redis_source,GitHubMota/redis,onlymellb/redis-3.0-annotated,Aaron1992/redis,seandsky/redis,ttuna/msot-redis,clamoriniere1A/redis,4396/redis,soloestoy/redis,ksarch-saas/redis,PKRoma/redis,viongpanzi/annotated_redis_source,zhaobo1023/redis-3.0-annotated,pmem/redis,rogerlz/redis,huangz1990/experiment-redis,allengaller/redis,Soledad89/redis,shreesundara/redis,ctripcorp/redis,mingyaaaa/redis,yybirdcf/learn-redis,buobao/redis-3.0-annotated,csuhawk/redis,SummonY/redis,flashbuckets/redis,gilala/redis,riyan8250/redis,ErikDubbelboer/redis,itamarhaber/redis,twskipper/redis,arijitvt/redis,zhcy/redis,modulexcite/redis,spearhead-ea/redis,tanghaodong25/redis,drinkthere/redis-3.0-annotated,Wangyao14cyy/redis,Aliceljm1/redis-3.0-annotated,elkingtonmcb/redis,ouyangkongtong/redis,ytjiang/redis,fengshao0907/annotated_redis_source,gongice/redis-3.0-annotated,duanx/redis,fengshao0907/redis,mcanthony/redis,jermnelson/redis,fengshao0907/redis-3.0-annotated,cnbin/redis,twskipper/redis,saisai/redis,ChanningDuan/annotated_redis_source,zguangyu/redis,SummonY/redis,JoeWoo/redis,wujf/redis,adamweixuan/redis-3.0-annotated,mingyaaaa/redis,blackmady/redis,Wangyao14cyy/redis,nuxeh/redis,davidradunz/redis,ncopa/redis,guker/redis,ttuna/msot-redis,ReadCode/redis-3.0-annotated,Aliceljm1/redis,jackyan/redis,rogerchina/redis,Cisphyx/redis-websockets,wuyu201321060203/redis-3.0-annotated,pmem/redis,rrsean/redis-3.0-annotated,hhli/redis,wprice/redis,zhcy/redis,yybirdcf/learn-redis,honestme/redis,nilyang/redis-tdd-annotation,seppo0010/rlite-server,jasonkying/redis,hgl888/redis,zguangyu/redis,MasahikoSawada/redis,pcarrier/redis,davidradunz/redis,SyntaxStacks/redis,citusdata/redis,MasahikoSawada/redis,slfs007/mk-redis,brg-liuwei/redis,nuxeh/redis,HeartSaVioR/redis,Aliceljm1/redis,himoca/redis,zhoudayang/redis,izhoujie/redis,huangz1990/experiment-redis,simplestbest/redis,LongXQ/redis,louisliangjun/redis,wenxueliu/redis_comment,aim-for-better/redis,xuguruogu/redis,dayuoba/redis,moonbingbing/redis-3.0-annotated,healerkx/redis,taoguan/redis,wbailey5/redis,seppo0010/rlite-server,ipmobiletech/redis,Soledad89/redis,rouzier/redis,maodeyi/redis_lua,wenxueliu/redis_comment,Cisphyx/redis-websockets,slfs007/mk-redis,gaoxianglong/redis,gilala/bjredis,AplayER/redis,ytjiang/redis,gilala/hredis,SyntaxStacks/redis,clamoriniere1A/redis,cnbin/redis,cnbin/redis,YuanZhewei/redis,figoxu/annotated_redis_source,kensou97/redis,cloudrain21/redis,kensou97/redis,j0hnma/hszredis,atreeyang/redis,huangz1990/experiment-redis,louisliangjun/redis,190235047/redis,jacklee0810/annotated_redis_source,z-fork/redis,nnog/redis,itugs/redis,fankeke/redis-3.0-annotated,zy416548283/redis-3.0-annotated,fankeke/redis-3.0-annotated,huangz1990/redis-3.0-annotated,antirez/redis,figoxu/annotated_redis_source,tjschuck/redis,charsyam/redis,tellapart/redis,YongMan/redis,fengshao0907/redis,ton31337/redis,YuanZhewei/redis,Sciumo/redis,wuyu201321060203/redis-3.0-annotated,iandyh/redis,guker/redis,MSOpenTech/redis,zhiliaoniu/redis,itugs/redis,roth1002/redis,0x20h/redis,jasonkying/redis,wujf/redis,hornen/redis,hawkchch/redis,atreeyang/redis,riyan8250/redis,dreamquster/redis,modulexcite/redis,miaoyc1989/redis-3.0-annotated,Cisphyx/redis-websockets,csuhawk/redis,HeartSaVioR/redis,seppo0010/redis,Aaron1992/redis,netroby/redis,josiahcarlson/redis,badboy/redis,pkdevbox/redis,ksarch-saas/redis,ramonsnir/redis,PKRoma/redis,cusspvz/redis,weizijun/redis,haima-zju/redis-3.0-annotated,mingyaaaa/redis,mengyou0304/redis,brg-liuwei/redis,rogerlz/redis,itamarhaber/redis,miaoyc1989/redis-3.0-annotated,AALEKH/redis,jacklee0810/redis-3.0-annotated,ReadCode/redis-3.0-annotated,OmarQunsul/graph-redis,dreamquster/redis,mverrilli/redis,StevenTsai/redis,kaushik94/redis,dreamquster/redis,gilala/hbjredis,onlymellb/redis-3.0-annotated,jingjidejuren/redis,cusspvz/redis,jackyan/redis,ipmobiletech/redis,GrimDerp/redis,roth1002/redis,Cisphyx/redis-websockets,wangyikai/redis,ksarch-saas/redis,idning/redis,adamweixuan/redis-3.0-annotated,atreeyang/redis,LongXQ/redis,ncopa/redis,xlzhan/redis,tidatida/annotated_redis_source,wprice/redis,yossigo/redis,jermnelson/redis,taoguan/redis,mgk/redis,gechong/redis-3.0-annotated,HunanTV/redis