blob: 55088a8c010090f6a247a5bb4deb6bf093b95dd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-ag,v 1.1 2005/12/13 16:26:39 joerg Exp $
--- src/main.c.orig 2005-12-13 16:11:25.000000000 +0000
+++ src/main.c
@@ -4,4 +4,5 @@
#include <sys/param.h>
+#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
@@ -14,9 +15,17 @@
#include <string.h>
#include <unistd.h>
+#if defined(__DragonFly__)
+#include <libutil.h>
+#else
#include <util.h>
+#endif
#include "externs.h"
#include "userdb.h"
#include "version.h"
+#if defined(__DragonFly__) && !defined(O_SYNC)
+#define O_SYNC O_FSYNC
+#endif
+
static void open_logs (void);
void close_logs (void);
|