1 |
lavajoe 07/10/21 16:54:44 |
2 |
|
3 |
Added: ksim-3.5.8-freebsd.patch |
4 |
Log: |
5 |
Patch to compile on FreeBSD |
6 |
(Portage version: 2.1.3.15) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 kde-base/ksim/files/ksim-3.5.8-freebsd.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/ksim/files/ksim-3.5.8-freebsd.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/ksim/files/ksim-3.5.8-freebsd.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: ksim-3.5.8-freebsd.patch |
15 |
=================================================================== |
16 |
--- ksim-3.5.8/ksim/monitors/filesystem/filesystemstats.cpp.old 2007-10-08 03:49:45 -0600 |
17 |
+++ ksim-3.5.8/ksim/monitors/filesystem/filesystemstats.cpp 2007-10-20 22:46:53 -0600 |
18 |
@@ -30,7 +30,7 @@ |
19 |
#include <sys/types.h> |
20 |
#include <sys/param.h> |
21 |
|
22 |
-#if defined(HAVE_SYS_STATVFS_H) && !defined(__DragonFly__) |
23 |
+#if defined(HAVE_SYS_STATVFS_H) && !defined(__FreeBSD__) && !defined(__DragonFly__) |
24 |
#include <sys/statvfs.h> |
25 |
#elif defined( HAVE_SYS_STATFS_H ) |
26 |
#include <sys/statfs.h> |
27 |
@@ -59,7 +59,7 @@ |
28 |
#include <stdio.h> |
29 |
#include <unistd.h> |
30 |
|
31 |
-#if defined(HAVE_STATVFS) && !defined(__DragonFly__) |
32 |
+#if defined(HAVE_STATVFS) && !defined(__FreeBSD__) && !defined(__DragonFly__) |
33 |
typedef struct statvfs ksim_statfs; |
34 |
#define ksim_getfsstat getvfsstat |
35 |
#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD ) |
36 |
@@ -75,7 +75,7 @@ |
37 |
|
38 |
int fsystemStats( const char * file, ksim_statfs & stats ) |
39 |
{ |
40 |
-#if defined(HAVE_STATVFS) && !defined(__DragonFly__) |
41 |
+#if defined(HAVE_STATVFS) && !defined(__FreeBSD__) && !defined(__DragonFly__) |
42 |
return statvfs( file, &stats ); |
43 |
#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD ) |
44 |
return statfs( file, &stats ); |
45 |
|
46 |
|
47 |
|
48 |
-- |
49 |
gentoo-commits@g.o mailing list |