Fixed NetBSD compile problems

This commit is contained in:
antirez 2009-07-22 10:32:21 +02:00
parent 21aecf4bab
commit fbf9bcdb6f

View File

@ -30,6 +30,7 @@
#define REDIS_VERSION "0.900"
#include "fmacros.h"
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
@ -38,8 +39,12 @@
#include <unistd.h>
#define __USE_POSIX199309
#include <signal.h>
#ifdef HAVE_BACKTRACE
#include <execinfo.h>
#include <ucontext.h>
#endif /* HAVE_BACKTRACE */
#include <sys/wait.h>
#include <errno.h>
#include <assert.h>
@ -52,7 +57,6 @@
#include <sys/time.h>
#include <sys/resource.h>
#include <limits.h>
#include <execinfo.h>
#include "redis.h"
#include "ae.h" /* Event driven programming library */
@ -64,8 +68,6 @@
#include "lzf.h" /* LZF compression library */
#include "pqsort.h" /* Partial qsort for SORT+LIMIT */
#include "config.h"
/* Error codes */
#define REDIS_OK 0
#define REDIS_ERR -1