summaryrefslogtreecommitdiff
path: root/storage/mroonga/vendor/groonga/src/grnslap.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/mroonga/vendor/groonga/src/grnslap.c')
-rw-r--r--storage/mroonga/vendor/groonga/src/grnslap.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/storage/mroonga/vendor/groonga/src/grnslap.c b/storage/mroonga/vendor/groonga/src/grnslap.c
index 2f5562fe6a9..f9eee1081fd 100644
--- a/storage/mroonga/vendor/groonga/src/grnslap.c
+++ b/storage/mroonga/vendor/groonga/src/grnslap.c
@@ -21,11 +21,11 @@
#include <string.h>
#include <stdio.h>
#ifdef HAVE_SYS_WAIT_H
-#include <sys/wait.h>
+# include <sys/wait.h>
#endif /* HAVE_SYS_WAIT_H */
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif /* HAVE_NETINET_IN_H */
+#ifndef WIN32
+# include <netinet/in.h>
+#endif /* WIN32 */
#define DEFAULT_PORT 10041
#define DEFAULT_HOST "localhost"
@@ -362,6 +362,8 @@ main(int argc, char **argv)
flags |= flag_usage;
}
+ grn_default_logger_set_path(GRN_LOG_PATH);
+
if (grn_init()) { return -1; }
if (flags & flag_usage) {
usage(); r = -1;