Changeset 4199


Ignore:
Timestamp:
12/24/10 15:24:55 (12 years ago)
Author:
lattjo
Message:

Use the Azbox openxcas open and close functions only if HAVE_DVBAPI is defined. Use the openxcas_open_with_smartcard only if WITH_CARDREADER is defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam.c

    r4198 r4199  
    22#define CS_CORE
    33#include "globals.h"
    4 #ifdef AZBOX
     4#if defined(AZBOX) && defined(HAVE_DVBAPI)
    55#  include "openxcas/openxcas_api.h"
    66#endif
     
    32543254  server_pid = getpid();
    32553255
    3256 #ifdef AZBOX
     3256#if defined(AZBOX) && defined(HAVE_DVBAPI)
    32573257  openxcas_debug_message_onoff(1);  // debug
    32583258
     3259#ifdef WITH_CARDREADER
    32593260  if (openxcas_open_with_smartcard("oscamCAS") < 0) {
     3261#else
     3262  if (openxcas_open("oscamCAS") < 0) {
     3263#endif 
    32603264    cs_log("openxcas: could not init");
    32613265  }
     
    33563360    }
    33573361
    3358 #ifdef AZBOX
     3362#if defined(AZBOX) && defined(HAVE_DVBAPI)
    33593363  if (openxcas_close() < 0) {
    33603364    cs_log("openxcas: could not close");
Note: See TracChangeset for help on using the changeset viewer.