diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-27 13:38:07 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-27 13:38:07 +0000 |
commit | 464dc5433641566abeeabd07f46ab569c986a3b0 (patch) | |
tree | add1de1cdf35972ff9a89f6c107aa03ff8670326 /source3/smbd/predict.c | |
parent | 8047228db4d3545da13d87d7b370a38ed0b4c4bb (diff) | |
download | samba-464dc5433641566abeeabd07f46ab569c986a3b0.tar.gz samba-464dc5433641566abeeabd07f46ab569c986a3b0.tar.xz samba-464dc5433641566abeeabd07f46ab569c986a3b0.zip |
also disable read prediction in 1.9.18
(This used to be commit 0f15558efb26b7215540a588dfe8733e9346d407)
Diffstat (limited to 'source3/smbd/predict.c')
-rw-r--r-- | source3/smbd/predict.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/predict.c b/source3/smbd/predict.c index 7d6b2498f5a..f5f0a2102e3 100644 --- a/source3/smbd/predict.c +++ b/source3/smbd/predict.c @@ -23,6 +23,7 @@ extern int DEBUGLEVEL; +#if USE_READ_PREDICTION /* variables used by the read prediction module */ static int rp_fd = -1; @@ -36,7 +37,7 @@ static int rp_timeout = 5; static time_t rp_time = 0; static char *rp_buffer = NULL; static BOOL predict_skip=False; -time_t smb_last_time=(time_t)0; +extern time_t smb_last_time; /**************************************************************************** handle read prediction on a file @@ -156,3 +157,6 @@ void invalidate_read_prediction(int fd) rp_predict_fd = -1; } +#else + void read_prediction_dummy(void) ; +#endif |