Added #ifdefs's to fix bugs when compiling without messaging or file-system support.
This commit is contained in:
parent
460cae786a
commit
f31b224aa0
@ -154,6 +154,8 @@ const unsigned int posixHandler::getProcessId() const
|
||||
}
|
||||
|
||||
|
||||
#if VMIME_HAVE_MESSAGING_FEATURES
|
||||
|
||||
vmime::messaging::socketFactory* posixHandler::getSocketFactory
|
||||
(const vmime::string& /* name */) const
|
||||
{
|
||||
@ -168,12 +170,18 @@ vmime::messaging::timeoutHandlerFactory* posixHandler::getTimeoutHandlerFactory
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#if VMIME_HAVE_FILESYSTEM_FEATURES
|
||||
|
||||
vmime::utility::fileSystemFactory* posixHandler::getFileSystemFactory() const
|
||||
{
|
||||
return (m_fileSysFactory);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
void posixHandler::wait() const
|
||||
{
|
||||
|
@ -55,11 +55,15 @@ public:
|
||||
|
||||
const unsigned int getProcessId() const;
|
||||
|
||||
#if VMIME_HAVE_MESSAGING_FEATURES
|
||||
vmime::messaging::socketFactory* getSocketFactory(const vmime::string& name) const;
|
||||
|
||||
vmime::messaging::timeoutHandlerFactory* getTimeoutHandlerFactory(const vmime::string& name) const;
|
||||
#endif
|
||||
|
||||
#if VMIME_HAVE_FILESYSTEM_FEATURES
|
||||
vmime::utility::fileSystemFactory* getFileSystemFactory() const;
|
||||
#endif
|
||||
|
||||
void wait() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user