Changeset 584


Ignore:
Timestamp:
Jun 28, 2011, 6:48:51 PM (14 years ago)
Author:
Silvan Scherrer
Message:

samba client 2.1: prepare for 2.2

Location:
trunk/client/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/src/Config.km_

    r528 r584  
    1414SAMBA   = ../../samba-33
    1515TOOLKIT = u:/os2tk45
     16
     17# libsmb 3.3 is threadunsafe, change _UNSAVE to _SAVE in 3.5
     18LIBSMB_THREAD_UNSAFE = LIBSMB_THREAD_UNSAFE
  • trunk/client/src/Makefile.kmk

    r544 r584  
    4444ndpsmb_LDFLAGS.debug = -g
    4545
    46 ndpsmb_DEFS =
     46ndpsmb_DEFS = $(LIBSMB_THREAD_UNSAFE)
    4747ndpsmb_INCS = ./h ./rc \
    4848                $(SAMBA)/source \
  • trunk/client/src/ndpsmb.c

    r567 r584  
    133133static int ifL;
    134134
    135 /* A mutex to serialize plugin calls because libsmb 3.3 is not thread safe. */
    136 /* while libsbm 3.5 should be threadsafe again, remember to remove it then */
     135/* A mutex to serialize plugin calls because libsmb may not be thread safe. */
    137136static NDMUTEX mutex;
    138137       
     
    156155    ph->fsphReleaseMutex (mutex);
    157156}
     157
     158#ifndef LIBSMB_THREAD_SAFE
    158159
    159160#define ENTER() do {            \
     
    163164} while (0)
    164165
    165 #define LEAVE()  do { \
     166#define LEAVE() do { \
    166167    lockRelease();    \
    167168} while (0)
     169
     170#else
     171#define ENTER() do { /* nothing */ } while (0)
     172#define LEAVE() do { /* nothing */ } while (0)
     173#endif
    168174
    169175int APIENTRY NdpPluginLoad (PLUGINHELPERTABLE2L *pPHT)
Note: See TracChangeset for help on using the changeset viewer.