Skip to content

Commit

Permalink
Correct compilation on FreeBSD, set HOST_NAME_MAX to _POSIX_HOST_NAME…
Browse files Browse the repository at this point in the history
…_MAX if isn't defined
  • Loading branch information
biancalana committed Jul 6, 2012
1 parent 4c52f58 commit 5c9cc27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/redis.c
Expand Up @@ -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
Expand Down

0 comments on commit 5c9cc27

Please sign in to comment.