]> git.sur5r.net Git - openldap/commitdiff
ITS#8216 Windows compat
authorHoward Chu <hyc@symas.com>
Mon, 26 Oct 2015 11:51:32 +0000 (11:51 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 26 Oct 2015 11:52:40 +0000 (11:52 +0000)
tests/progs/slapd-tester.c

index 1354045f3c23c2f2f408f198f6edc054ba5155d2..69873749c67c405be3bc97878ab9e989ab911e80 100644 (file)
 #include "lber_pvt.h"
 #include "slapd-common.h"
 
-#define SEARCHCMD              "slapd-search"
-#define READCMD                        "slapd-read"
-#define ADDCMD                 "slapd-addel"
-#define MODRDNCMD              "slapd-modrdn"
-#define MODIFYCMD              "slapd-modify"
-#define BINDCMD                        "slapd-bind"
+#ifdef _WIN32
+#define EXE            ".exe"
+#else
+#define EXE
+#endif
+
+#define SEARCHCMD              "slapd-search" EXE
+#define READCMD                        "slapd-read" EXE
+#define ADDCMD                 "slapd-addel" EXE
+#define MODRDNCMD              "slapd-modrdn" EXE
+#define MODIFYCMD              "slapd-modify" EXE
+#define BINDCMD                        "slapd-bind" EXE
 #define MAXARGS                100
 #define MAXREQS                        5000
 #define LOOPS                  100