Ignore:
Timestamp:
29/12/2006 17:18:17 (5 years ago)
Author:
chris
Message:

Compile fix for platforms without intercept capability (refs #3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/test/bbackupd/testbbackupd.cpp

    r1190 r1229  
    1010#include "Box.h" 
    1111 
     12#include <dirent.h> 
    1213#include <stdio.h> 
    1314#include <sys/types.h> 
     
    510511} 
    511512 
    512 void intercept_setup_delay(const char *filename, unsigned int delay_after, 
    513         int delay_ms, int syscall_to_delay, int num_delays); 
    514  
    515 bool intercept_triggered(); 
    516  
    517513int start_internal_daemon() 
    518514{ 
     
    599595struct dirent *readdir_test_hook_1(DIR *dir) 
    600596{ 
     597#ifndef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 
    601598        intercept_setup_readdir_hook(NULL, readdir_test_hook_2); 
     599#endif 
    602600        return NULL; 
    603601} 
     
    610608        if (time(NULL) >= readdir_stop_time) 
    611609        { 
     610#ifndef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 
    612611                intercept_setup_readdir_hook(NULL, NULL); 
    613612                intercept_setup_lstat_hook  (NULL, NULL); 
     613#endif 
    614614                // we will not be called again. 
    615615        } 
     
    627627                "testfiles/TestDir1/spacetest/d1/test.%d",  
    628628                readdir_test_counter); 
     629#ifndef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 
    629630        intercept_setup_lstat_hook(stat_hook_filename, lstat_test_hook); 
     631#endif 
    630632 
    631633        return &readdir_test_dirent; 
Note: See TracChangeset for help on using the changeset viewer.