Permalink
Browse files

set OCI_THREADED only when mapserver is built with USE_THREADS

  • Loading branch information...
unicolet committed Aug 14, 2013
1 parent b924dc5 commit 8402cef44f84d6714e2dbc3e844cff963e9ab3e5
Showing with 4 additions and 0 deletions.
  1. +4 −0 maporaclespatial.c
View
@@ -598,7 +598,11 @@ static msOracleSpatialHandler *msOCISetHandlers( char *username, char *password,
success = TRY( hand, success = TRY( hand,
/* allocate envhp */ /* allocate envhp */
#ifdef USE_THREAD
OCIEnvCreate( &hand->envhp, OCI_OBJECT|OCI_THREADED, (dvoid *)0, 0, 0, 0, (size_t) 0, (dvoid **)0 ) ) OCIEnvCreate( &hand->envhp, OCI_OBJECT|OCI_THREADED, (dvoid *)0, 0, 0, 0, (size_t) 0, (dvoid **)0 ) )
#else
OCIEnvCreate( &hand->envhp, OCI_OBJECT, (dvoid *)0, 0, 0, 0, (size_t) 0, (dvoid **)0 ) )
#endif
&& TRY( hand, && TRY( hand,
/* allocate errhp */ /* allocate errhp */
OCIHandleAlloc( (dvoid *)hand->envhp, (dvoid **)&hand->errhp, (ub4)OCI_HTYPE_ERROR, (size_t)0, (dvoid **)0 ) ) OCIHandleAlloc( (dvoid *)hand->envhp, (dvoid **)&hand->errhp, (ub4)OCI_HTYPE_ERROR, (size_t)0, (dvoid **)0 ) )

0 comments on commit 8402cef

Please sign in to comment.