2 changed files with 11 additions and 20 deletions
@ -1,23 +1,14 @@ |
|||||||
--- config.h.in.orig Wed Feb 6 17:29:06 2002
|
--- lib/cyrusdb_skiplist.c.orig Tue Apr 23 20:25:48 2002
|
||||||
+++ config.h.in Wed Feb 6 17:29:16 2002
|
+++ lib/cyrusdb_skiplist.c Wed May 8 13:49:23 2002
|
||||||
@@ -238,6 +238,7 @@
|
@@ -69,6 +69,11 @@
|
||||||
|
|
||||||
/* getaddrinfo things */
|
#define PROB (0.5)
|
||||||
#include <netdb.h>
|
|
||||||
+#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
|
|
||||||
#ifndef HAVE_GETADDRINFO
|
|
||||||
--- lib/cyrusdb_skiplist.c.orig Thu Feb 28 20:50:36 2002
|
|
||||||
+++ lib/cyrusdb_skiplist.c Fri Mar 8 12:28:55 2002
|
|
||||||
@@ -170,6 +170,10 @@
|
|
||||||
be_paranoid = 0
|
|
||||||
};
|
|
||||||
|
|
||||||
+#ifdef __FreeBSD__
|
+#ifdef __FreeBSD__
|
||||||
+#define fdatasync(fd) fsync(fd)
|
+/* #define fdatasync(fd) fsync(fd) */
|
||||||
|
+#define O_DSYNC 0
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
#define FSYNC(fd) (do_fsync && fsync(fd))
|
/*
|
||||||
#define FDATASYNC(fd) ((do_fsync == 1 && fdatasync(fd)) || \
|
*
|
||||||
(do_fsync == 2 && fsync(fd)))
|
* disk format; all numbers in network byte order
|
||||||
|
Loading…
Reference in new issue