41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
$NetBSD: patch-af,v 1.3 2008/11/10 14:56:16 adam Exp $
|
|
|
|
--- src/gentoo.h.orig 2008-07-07 20:09:22.000000000 +0200
|
|
+++ src/gentoo.h
|
|
@@ -13,7 +13,7 @@
|
|
|
|
#include "config.h"
|
|
|
|
-#if !(defined __osf__ && defined __alpha__) && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __sgi
|
|
+#if !(defined __osf__ && defined __alpha__) && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __sgi && !defined(__DragonFly__)
|
|
#if !defined __EXTENSIONS__
|
|
#define __EXTENSIONS__
|
|
#endif
|
|
@@ -46,7 +46,7 @@
|
|
#include <time.h>
|
|
#include <unistd.h>
|
|
|
|
-#if defined HAVE_STRUCT_STATVFS
|
|
+#if defined HAVE_STRUCT_STATVFS && !defined(__DragonFly__)
|
|
#include <sys/statvfs.h>
|
|
#elif defined HAVE_STRUCT_STATFS
|
|
#include <sys/statfs.h>
|
|
@@ -56,7 +56,7 @@
|
|
** and save some typing in various tests below. This should probably all
|
|
** be replaced by proper Autoconfed stuff at some point.
|
|
*/
|
|
-#if defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__
|
|
+#if defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__ || defined(__DragonFly__)
|
|
#define GENTOO_ON_BSD
|
|
#endif
|
|
|
|
@@ -464,7 +464,7 @@ typedef struct {
|
|
|
|
typedef struct { /* Some trivial file system information. Updated on rescan. */
|
|
gboolean valid; /* Set if the structure's contents are valid. */
|
|
-#if defined HAVE_STRUCT_STATVFS
|
|
+#if defined HAVE_STRUCT_STATVFS && !defined(__DragonFly__)
|
|
struct statvfs stat; /* Holds information about filesystem. */
|
|
#elif defined HAVE_STRUCT_STATFS || defined GENTOO_ON_BSD
|
|
struct statfs stat;
|