Blob Blame History Raw
From 3e91cf03a9b1c4aa2828c3fa46d55a32af3308cb Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Sun, 21 Feb 2010 00:53:43 +0100
Subject: [PATCH 1/2] Fix build

Include libber, since we need it and now linker doesn't drag it in with
libldap anymore.

Define for a nonstandard string comparison function.
---
 project/linux/Makefile |    2 +-
 src/Main.h             |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/project/linux/Makefile b/project/linux/Makefile
index 91ff975..496d256 100644
--- a/project/linux/Makefile
+++ b/project/linux/Makefile
@@ -56,7 +56,7 @@ CPPFLAGS = -Wall -O
 LIBDIR = -L/usr/local/lib -L/usr/lib
 
 # What libraries do we need?
-LIBS = -lxerces-c -lxalan-c -lpcre -lpopt -lcrypto -lldap
+LIBS = -lxerces-c -lxalan-c -lpcre -lpopt -lcrypto -lldap -llber
 
 # Determine what platform the source is being build on
 PLATFORM = $(shell uname | tr '[a-z]' '[A-Z]')
diff --git a/src/Main.h b/src/Main.h
index 82473f8..ec8bcf0 100644
--- a/src/Main.h
+++ b/src/Main.h
@@ -37,9 +37,13 @@
 	#include <windows.h>
 #endif
 
+#if 0
 #ifdef LINUX
 	#define STRNICMP strnicmp
 #endif
+#else
+	#define STRNICMP strncasecmp
+#endif
 
 
 #define EXIT_SUCCESS	0
-- 
1.7.0