Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct compilation on FreeBSD, set HOST_NAME_MAX to _POSIX_HOST_NAME…

…_MAX if isn't defined
  • Loading branch information...
commit 5c9cc278f1465b06480f9c9aef8296efd3b68bbd 1 parent 4c52f58
@biancalana authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/redis.c
View
4 src/redis.c
@@ -28,6 +28,10 @@
#include <pthread.h>
#include <credis.h>
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#endif
+
#define REDIS_DEF_HOST "localhost"
#define REDIS_DEF_PORT 6379
#define REDIS_DEF_TIMEOUT 2000
Please sign in to comment.
Something went wrong with that request. Please try again.