075da553c1
Fix HAL build on OS X. Tested on 10.5.6 powerpc.
23 lines
634 B
Text
23 lines
634 B
Text
$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>
|