blob: d7a57dddf46442469ba95e2facbe1c13cd8ce613 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ac,v 1.3 2008/12/20 21:11:05 jmcneill Exp $
--- tools/hal-storage-unmount.c.orig 2008-05-08 02:24:17 +0300
+++ tools/hal-storage-unmount.c 2008-11-23 13:40:23 +0200
@@ -31,13 +31,17 @@
#include <string.h>
#include <glib.h>
#include <glib/gstdio.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__APPLE__)
#include <fstab.h>
#include <sys/param.h>
#include <sys/ucred.h>
#include <sys/mount.h>
#include <limits.h>
#include <pwd.h>
+#elif __NetBSD__
+#include <fstab.h>
+#include <sys/param.h>
+#include <sys/mount.h>
#elif sun
#include <fcntl.h>
#include <sys/mnttab.h>
|