update Mon Jun 21 12:37:00 PDT 2010
[pkgsrc.git] / ham / dpbox / patches / patch-ac
1 $NetBSD: patch-ac,v 1.2 2006/01/24 22:27:07 joerg Exp $
2
3 --- filesys.h.orig      2000-04-27 12:48:56.000000000 +0000
4 +++ filesys.h
5 @@ -71,7 +71,7 @@ extern void mktemp(char *name);
6  
7  
8  
9 -#if defined(__linux__) || defined(__NetBSD__)
10 +#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
11  
12  /* simply copied that widespread file access code of former dpbox code  */
13  /* in this single file. Not a real change to previous versions of the   */
14 @@ -79,7 +79,7 @@ extern void mktemp(char *name);
15  /* localisation of the dpbox code from Atari to Linux                   */
16  
17  #include <sys/stat.h>
18 -#ifndef __NetBSD__
19 +#if !defined(__NetBSD__) && !defined(__DragonFly__)
20  #include <sys/vfs.h>
21  #endif
22  
23 @@ -177,7 +177,7 @@ extern long sfwrite(short handle, long c
24  extern void sfclose_x(short *handle, boolean delete_it);
25  extern void sfdelfile(char *name);
26  extern void sfdispfilelist(short x, dispfilelistproc outproc);
27 -extern void chkopenfiles(long maxopen, char *fn); /* maxopen in sekunden */
28 +extern void chkopenfiles(time_t maxopen, char *fn); /* maxopen in sekunden */
29  extern short fmv_x(char *filea, char *fileb, boolean delete_source,
30                        long start, long size, boolean was_rename);
31  extern boolean tas_lockfile(long waittime, long oldtime, char *name);