diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-16 12:59:38 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-16 12:59:38 +0000 |
| commit | 99ce662b69119b8a1241d06c79c17c543861ebc4 (patch) | |
| tree | d9efde9f29b5c954efca174254082fd16f9e1d3f /src/libs/zbxsysinfo/common/net.c | |
| parent | 7f6f632b5e0e5e3ada3dd7fa8521e4f9745edbf6 (diff) | |
| download | zabbix-99ce662b69119b8a1241d06c79c17c543861ebc4.tar.gz zabbix-99ce662b69119b8a1241d06c79c17c543861ebc4.tar.xz zabbix-99ce662b69119b8a1241d06c79c17c543861ebc4.zip | |
new binaries for WinXX
git-svn-id: svn://svn.zabbix.com/trunk@4023 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo/common/net.c')
| -rw-r--r-- | src/libs/zbxsysinfo/common/net.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libs/zbxsysinfo/common/net.c b/src/libs/zbxsysinfo/common/net.c index c8ffabd5..5e8927b8 100644 --- a/src/libs/zbxsysinfo/common/net.c +++ b/src/libs/zbxsysinfo/common/net.c @@ -184,7 +184,9 @@ int CHECK_PORT(const char *cmd, const char *param, unsigned flags, AGENT_RESULT int CHECK_DNS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result) -{ +{
+#if !defined(_WINDOWS)
+ #if !defined(PACKETSZ) # define PACKETSZ 512 #endif /* PACKETSZ */ @@ -251,6 +253,9 @@ int CHECK_DNS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT * res = res_query(zone, C_IN, T_SOA, (unsigned char *)respbuf, sizeof(respbuf)); SET_UI64_RESULT(result, res != -1 ? 1 : 0); - - return SYSINFO_RET_OK; +
+ return SYSINFO_RET_OK;
+#else + return SYSINFO_RET_FAIL;
+#endif /* not WINDOWS */ } |
