summaryrefslogtreecommitdiff
path: root/ham/dpbox/patches/patch-ac
blob: 1e3eeb4b79b5a9a3eb6a8f2f872e3cabb97e6c82 (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
29
30
31
$NetBSD: patch-ac,v 1.2 2006/01/24 22:27:07 joerg Exp $

--- filesys.h.orig	2000-04-27 12:48:56.000000000 +0000
+++ filesys.h
@@ -71,7 +71,7 @@ extern void mktemp(char *name);
 
 
 
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
 
 /* simply copied that widespread file access code of former dpbox code  */
 /* in this single file. Not a real change to previous versions of the   */
@@ -79,7 +79,7 @@ extern void mktemp(char *name);
 /* localisation of the dpbox code from Atari to Linux                   */
 
 #include <sys/stat.h>
-#ifndef __NetBSD__
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
 #include <sys/vfs.h>
 #endif
 
@@ -177,7 +177,7 @@ extern long sfwrite(short handle, long c
 extern void sfclose_x(short *handle, boolean delete_it);
 extern void sfdelfile(char *name);
 extern void sfdispfilelist(short x, dispfilelistproc outproc);
-extern void chkopenfiles(long maxopen, char *fn); /* maxopen in sekunden */
+extern void chkopenfiles(time_t maxopen, char *fn); /* maxopen in sekunden */
 extern short fmv_x(char *filea, char *fileb, boolean delete_source,
 		       long start, long size, boolean was_rename);
 extern boolean tas_lockfile(long waittime, long oldtime, char *name);