diff options
| author | Christophe Fergeau <cfergeau@redhat.com> | 2012-02-29 11:48:15 +0100 |
|---|---|---|
| committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-02-29 18:20:01 +0100 |
| commit | a50619e7334ff3620034a8b2ea75ceeffd4a805a (patch) | |
| tree | 85b8eb4e141f7c7f30cc66c3f4e10bdc76145232 /client/controller.cpp | |
| parent | 4b7c66cafc7b250f4517cfb1e415a2889abec994 (diff) | |
Fix compilation when smartcard support is disabled
The addition of smartcard control to the controller doesn't handle
the case when smartcard support is disabled at compile time. When
this is the case, this causes compile errors.
Diffstat (limited to 'client/controller.cpp')
| -rw-r--r-- | client/controller.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/controller.cpp b/client/controller.cpp index a0269be3..e0b7fe77 100644 --- a/client/controller.cpp +++ b/client/controller.cpp @@ -334,9 +334,11 @@ bool ControllerConnection::handle_message(ControllerMsg *hdr) case CONTROLLER_DELETE_MENU: _handler->delete_menu(); break; +#if USE_SMARTCARD case CONTROLLER_ENABLE_SMARTCARD: _handler->enable_smartcard(value); break; +#endif case CONTROLLER_SEND_CAD: default: LOG_ERROR("Ignoring an unknown/SEND_CAD controller message %u", hdr->id); |
