• spiiroin's avatar
    [usb-moded] Use MEEGOLOCK features only when enabled. Fixes MER#1765 · 04e3a753
    spiiroin authored
    The is_in_user_state() is used unconditionally, but it is available only
    when --enable-meegodevlock option has been passed to configure. Also,
    the related "usb_moded-dsme.h" is included both unconditionally and from
    withing a #ifdef MEEGOLOCK block - which hides the configuration problem
    until build proceeds to linking phase.
    
    Make the call is_in_user_state() only if MEEGOLOCK is defined.
    
    Remove the extraneous "usb_moded-dsme.h" include to make such errors
    visible already in compilation stage due to missing prototypes.
    
    Also, make sure the "usb_moded-dsme.h" can't be included without
    warnings unless MEEGOLOCK is defined.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    04e3a753
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...