summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Orton <notroj@users.noreply.github.com>2011-12-12 20:57:27 +0000
committerJoe Orton <notroj@users.noreply.github.com>2011-12-12 20:57:27 +0000
commit49ec284b33d465c1d954bba19928bd2dd3142674 (patch)
tree5b00c43913a451636e8f89e4d5df10bd6acb4218
parent2285b707e1aa01e973251052e40439e2712c411a (diff)
downloadneon-git-0.29.x.tar.gz
* test/common/tests.c: Fix build with neon < 0.26.x, for bundled litmus0.29.x
build.
-rw-r--r--test/common/tests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/common/tests.c b/test/common/tests.c
index 1ef9981..8ee237e 100644
--- a/test/common/tests.c
+++ b/test/common/tests.c
@@ -45,7 +45,9 @@
#include "ne_string.h"
#include "ne_utils.h"
#include "ne_socket.h"
+#if NE_VERSION_MAJOR > 0 || NE_VERSION_MINOR > 25
#include "ne_i18n.h"
+#endif
#include "tests.h"
#include "child.h"
@@ -188,7 +190,9 @@ int main(int argc, char *argv[])
setlocale(LC_MESSAGES, "");
#endif
+#if NE_VERSION_MAJOR > 0 || NE_VERSION_MAJOR > 25
ne_i18n_init(NULL);
+#endif
#if defined(HAVE_ISATTY) && defined(STDOUT_FILENO)
if (isatty(STDOUT_FILENO)) {