summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/useragent.c2
-rw-r--r--utils/utf8.c2
-rw-r--r--utils/utils.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/utils/useragent.c b/utils/useragent.c
index 4decb7736..65ac012ad 100644
--- a/utils/useragent.c
+++ b/utils/useragent.c
@@ -31,7 +31,7 @@ user_agent_build_string(void)
char *ua_string;
int len;
- if (uname(&un) == 0) {
+ if (uname(&un) >= 0) {
sysname = un.sysname;
machine = un.machine;
}
diff --git a/utils/utf8.c b/utils/utf8.c
index 69414400e..1dcb49e93 100644
--- a/utils/utf8.c
+++ b/utils/utf8.c
@@ -14,7 +14,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
-
+#define LIBICONV_PLUG
#include <iconv.h>
#include "utils/log.h"
diff --git a/utils/utils.c b/utils/utils.c
index f2250b7fa..53124a0d1 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -257,7 +257,7 @@ unsigned int wallclock(void)
}
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || (defined(__SVR4) && defined(__sun))
/**
* Duplicate up to n characters of a string.