diff options
-rw-r--r-- | source/nmbd/nmbd.c | 2 | ||||
-rw-r--r-- | source/smbd/server.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index c49ec95f59a..3e7b2171ec0 100644 --- a/source/nmbd/nmbd.c +++ b/source/nmbd/nmbd.c @@ -776,10 +776,12 @@ static void usage(char *pname) if ( !reload_nmbd_services(False) ) return(-1); +#ifdef WITH_PROFILE if (!profile_setup(False)) { DEBUG(0,("ERROR: failed to setup profiling shared memory\n")); return -1; } +#endif /* WITH_PROFILE */ codepage_initialise(lp_client_code_page()); diff --git a/source/smbd/server.c b/source/smbd/server.c index 30bcbfab883..f22345eec7e 100644 --- a/source/smbd/server.c +++ b/source/smbd/server.c @@ -703,10 +703,12 @@ static void usage(char *pname) init_structs(); +#ifdef WITH_PROFILE if (!profile_setup(False)) { DEBUG(0,("ERROR: failed to setup profiling shared memory\n")); return -1; } +#endif /* WITH_PROFILE */ #ifdef WITH_SSL { |