diff options
author | Jeremy Allison <jra@samba.org> | 2001-09-07 17:33:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-09-07 17:33:48 +0000 |
commit | f278167d28cc5caab6b04b27f555d41f151b7b4f (patch) | |
tree | 1db2fc03f5545f0fd800a8e6dfea8559cfc8b51b | |
parent | 0404043b31eb4f2165078486de82424ca9713c80 (diff) | |
download | samba-f278167d28cc5caab6b04b27f555d41f151b7b4f.tar.gz samba-f278167d28cc5caab6b04b27f555d41f151b7b4f.tar.xz samba-f278167d28cc5caab6b04b27f555d41f151b7b4f.zip |
#ifdef out the profile code unless selected in configure.
Jeremy.
-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 { |