]> git.saurik.com Git - redis.git/blobdiff - src/rdb.c
Use fstat to detect if stdin was redirected
[redis.git] / src / rdb.c
index 5bda5e5655514574bc45be42a9e09a3c74fb352e..509c70c307f378d417dedc4032ba4c59e9edcb7e 100644 (file)
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -2,6 +2,11 @@
 #include "lzf.h"    /* LZF compression library */
 
 #include <math.h>
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <sys/wait.h>
+#include <arpa/inet.h>
 
 int rdbSaveType(FILE *fp, unsigned char type) {
     if (fwrite(&type,1,1,fp) == 0) return -1;