diff options
author | nia <nia@pkgsrc.org> | 2019-09-09 09:26:00 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2019-09-09 09:26:00 +0000 |
commit | 611578be23a76054b7078f61c399e9bb9b72df27 (patch) | |
tree | 0981252672be09707c3ed3b732e183a17f9fed0f | |
parent | 19c792e551e5e2e994d1358fda58132f21b911d8 (diff) | |
download | pkgsrc-611578be23a76054b7078f61c399e9bb9b72df27.tar.gz |
dosfstools: Fix build on NetBSD
-rw-r--r-- | sysutils/dosfstools/distinfo | 3 | ||||
-rw-r--r-- | sysutils/dosfstools/patches/patch-src_device__info.c | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/sysutils/dosfstools/distinfo b/sysutils/dosfstools/distinfo index a20e2a872a3..f7313eb4e1f 100644 --- a/sysutils/dosfstools/distinfo +++ b/sysutils/dosfstools/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1 2018/06/24 11:13:58 bsiegert Exp $ +$NetBSD: distinfo,v 1.2 2019/09/09 09:26:00 nia Exp $ SHA1 (dosfstools-4.1.tar.gz) = db39f667c3cb51bdf321f07f9cf17c726ca50323 RMD160 (dosfstools-4.1.tar.gz) = 537b5418e6a78728ff8b94023966ce2155d64d6a SHA512 (dosfstools-4.1.tar.gz) = c45b26779c126c128ff64668403d552b9ed70e9205ced968fa9c80e7220c2b24c3f24007ae41ee20e8993637ec2aca584142458d25db42df6488edf18fb6185b Size (dosfstools-4.1.tar.gz) = 233766 bytes +SHA1 (patch-src_device__info.c) = c342d080fb1b64d71813516e0aef4736587e6a3a diff --git a/sysutils/dosfstools/patches/patch-src_device__info.c b/sysutils/dosfstools/patches/patch-src_device__info.c new file mode 100644 index 00000000000..1a35cf06335 --- /dev/null +++ b/sysutils/dosfstools/patches/patch-src_device__info.c @@ -0,0 +1,18 @@ +$NetBSD: patch-src_device__info.c,v 1.1 2019/09/09 09:26:00 nia Exp $ + +Support netbsd's spelling for statfs. + +--- src/device_info.c.orig 2016-09-15 23:17:27.000000000 +0000 ++++ src/device_info.c +@@ -318,7 +318,11 @@ int is_device_mounted(const char *path) + #endif + + #if HAVE_DECL_GETMNTINFO ++#ifdef __NetBSD__ ++ struct statvfs *stat; ++#else + struct statfs *stat; ++#endif + int count, i; + + count = getmntinfo(&stat, 0); |