summaryrefslogtreecommitdiff
path: root/storage/mroonga/vendor/groonga/src/groonga_benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/mroonga/vendor/groonga/src/groonga_benchmark.c')
-rw-r--r--storage/mroonga/vendor/groonga/src/groonga_benchmark.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/storage/mroonga/vendor/groonga/src/groonga_benchmark.c b/storage/mroonga/vendor/groonga/src/groonga_benchmark.c
index 656984a7695..2ebca387232 100644
--- a/storage/mroonga/vendor/groonga/src/groonga_benchmark.c
+++ b/storage/mroonga/vendor/groonga/src/groonga_benchmark.c
@@ -28,14 +28,14 @@
#include <sys/stat.h>
#ifdef HAVE_SYS_WAIT_H
-#include <sys/wait.h>
+# include <sys/wait.h>
#endif /* HAVE_SYS_WAIT_H */
#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
+# include <sys/socket.h>
#endif /* HAVE_SYS_SOCKET_H */
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif /* HAVE_NETINET_IN_H */
+#ifndef WIN32
+# include <netinet/in.h>
+#endif /* WIN32 */
#include <grn_str.h>
#include <grn_com.h>
@@ -3062,6 +3062,8 @@ main(int argc, char **argv)
grntest_outtype = OUT_TSV;
}
+ grn_default_logger_set_path(GRN_LOG_PATH);
+
grn_init();
CRITICAL_SECTION_INIT(grntest_cs);