diff --git a/libraries/librewrite/rewrite-int.h b/libraries/librewrite/rewrite-int.h index 0deb72bffa..441db513a0 100644 --- a/libraries/librewrite/rewrite-int.h +++ b/libraries/librewrite/rewrite-int.h @@ -40,6 +40,11 @@ #include +#ifndef NO_THREADS +#define USE_REWRITE_LDAP_PVT_THREADS +#include +#endif + #define malloc(x) ber_memalloc(x) #define calloc(x,y) ber_memcalloc(x,y) #define realloc(x,y) ber_memrealloc(x,y) @@ -47,11 +52,6 @@ #undef strdup #define strdup(x) ber_strdup(x) -#ifndef NO_THREADS -#define USE_REWRITE_LDAP_PVT_THREADS -#include -#endif - /* * For details, see RATIONALE. */