diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-04-21 11:19:06 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-04-21 11:19:06 +0000 |
commit | 2c0a1804229dacc22eb1aa65c6b18080dbbedfb7 (patch) | |
tree | 1e2ecf5ffb2f28946b595b429126b1d78684acd6 /test/bbackupd/testbbackupd.cpp | |
parent | 2a571b61cfd208c7d29c6c4f95c0cf9a47217c3c (diff) |
Don't fill in struct dirent.d_ino unless we've detected that it's
present on this platform. (refs #3)
Diffstat (limited to 'test/bbackupd/testbbackupd.cpp')
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index 1390d1df..17c48d45 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -710,7 +710,11 @@ struct dirent *readdir_test_hook_2(DIR *dir) // fill in the struct dirent appropriately memset(&readdir_test_dirent, 0, sizeof(readdir_test_dirent)); - readdir_test_dirent.d_ino = ++readdir_test_counter; + + #ifdef HAVE_STRUCT_DIRENT_D_INO + readdir_test_dirent.d_ino = ++readdir_test_counter; + #endif + snprintf(readdir_test_dirent.d_name, sizeof(readdir_test_dirent.d_name), "test.%d", readdir_test_counter); |