diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-03-01 22:44:25 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-03-01 22:44:25 +0000 |
commit | 5131b1ecc84eae0e091617cf6fa6c3f5154b9f5f (patch) | |
tree | c3c080b031215ad76d5a9312a1000d2df79c1207 /bin | |
parent | edf149ca9d5a819ee63863f909b7fa01c54fb39e (diff) |
Workaround for (buggy?) gcc not finding inherited Main method on
Windows.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbackupd/BackupDaemon.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/bbackupd/BackupDaemon.h b/bin/bbackupd/BackupDaemon.h index 62f9c393..1d5efd2c 100644 --- a/bin/bbackupd/BackupDaemon.h +++ b/bin/bbackupd/BackupDaemon.h @@ -65,6 +65,14 @@ public: std::string GetOptionString(); int ProcessOption(signed int option); int Main(const std::string &rConfigFileName); + + // This shouldn't be here, but apparently gcc on + // Windows has no idea about inherited methods... + virtual int Main(const char *DefaultConfigFile, int argc, + const char *argv[]) + { + return Daemon::Main(DefaultConfigFile, argc, argv); + } #endif void Run(); |