Bug #1195
closedCompile error (In function 'dvb_adapter_start')
100%
Description
With most recent commit i'm getting the following error:
https://github.com/tvheadend/tvheadend/commit/ebf95d795155329375970c37ee993fc2e55570e9
CC        build.linux/src/dvb/dvb_support.o
CC        build.linux/src/dvb/dvb_fe.o
CC        build.linux/src/dvb/dvb_tables.o
CC        build.linux/src/dvb/diseqc.o
CC        build.linux/src/dvb/dvb_adapter.o
cc1: warnings being treated as errors
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c: In function 'dvb_adapter_start':
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c:463: warning: implicit declaration of function 'pipe2'
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c:463: error: 'O_CLOEXEC' undeclared (first use in this function)
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c:463: error: (Each undeclared identifier is reported only once
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c:463: error: for each function it appears in.)
make3: * [build.linux/src/dvb/dvb_adapter.o] Error 1
make3: Leaving directory `/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7'
make2:  [compile_target] Error 2
make2: Leaving directory `/home/openelec/spksrc/cross/tvheadend'
make1:  [depend_target] Error 2
make1: Leaving directory `/home/openelec/spksrc/spk/tvheadend'
make: * [tvheadend] Error 2
Files
      
      Updated by Adam Sutton about 13 years ago
      
      
    
    
    Randy,
can you try this patch, clearly I should have stayed well away from pipe2() due to limited support cross platform.
Adam
      
      Updated by Adam Sutton about 13 years ago
      
      
    
    - Status changed from New to Accepted
 - Assignee changed from Hein Rigolo to Adam Sutton
 
      
      Updated by Randy M about 13 years ago
      
      
    
    Thanks Adam, patch seems to solve the problem.
      
      Updated by Adam Sutton about 13 years ago
      
      
    
    Ta,
I'll push it to git master soon.
Adam
      
      Updated by Adam Sutton about 13 years ago
      
      
    
    - Status changed from Accepted to Fixed
 - % Done changed from 0 to 100
 
Applied in changeset commit:77398b8726bb8b56f8004876fc00439133b08cc2.