summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_pgsql.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index 9ec369859..57c049f30 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -817,14 +817,11 @@ class ModulePgSQL : public Module
ipvalid = inet_pton(AF_INET6, host.host.c_str(), &blargle);
}
else
+#endif
{
in_addr blargle;
ipvalid = inet_aton(host.host.c_str(), &blargle);
}
-#else
- in_addr blargle;
- ipvalid = inet_aton(host.host.c_str(), &blargle);
-#endif
if(ipvalid > 0)
{