3d10a4b0fc
conkyrc.sample disappeared, and src/openbsd.h is missing from distfile. ok jasper@ & vlad glagolev (MAINTAINER)
22 lines
737 B
Plaintext
22 lines
737 B
Plaintext
$OpenBSD: patch-src_fs_c,v 1.1 2008/09/30 09:54:19 landry Exp $
|
|
--- src/fs.c.orig Mon Sep 22 22:20:03 2008
|
|
+++ src/fs.c Mon Sep 22 22:21:42 2008
|
|
@@ -44,7 +44,7 @@
|
|
#include <sys/mount.h>
|
|
#endif
|
|
|
|
-#if !defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) && !defined(__FreeBSD__)
|
|
+#if !defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) && !defined (__OpenBSD__) && !defined(__FreeBSD__)
|
|
#include <mntent.h>
|
|
#endif
|
|
|
|
@@ -124,7 +124,7 @@ static void update_fs_stat(struct fs_stat *fs)
|
|
void get_fs_type(const char *path, char *result)
|
|
{
|
|
|
|
-#if defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) || defined(__FreeBSD__)
|
|
+#if defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) || defined(__FreeBSD__) || defined (__OpenBSD__)
|
|
|
|
struct statfs s;
|
|
if (statfs(path, &s) == 0) {
|