summaryrefslogtreecommitdiff
path: root/sbin/disklabel/extern.h
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2013-01-17 18:33:58 +0000
committerchristos <christos@NetBSD.org>2013-01-17 18:33:58 +0000
commit8aede6bfe2eb2800a3899cd28d794d1faef5c320 (patch)
tree897505be6a77a975fe4bb3e328a67c7ff64faf17 /sbin/disklabel/extern.h
parent6193bbaa8b88a4cc44027e45758f7b77a0f259cb (diff)
move dk_ioctl to a header file for the benefit of x-building.
Diffstat (limited to 'sbin/disklabel/extern.h')
-rw-r--r--sbin/disklabel/extern.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sbin/disklabel/extern.h b/sbin/disklabel/extern.h
index de874193737..83e68d9c620 100644
--- a/sbin/disklabel/extern.h
+++ b/sbin/disklabel/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.11 2009/10/21 01:07:46 snj Exp $ */
+/* $NetBSD: extern.h,v 1.12 2013/01/17 18:33:58 christos Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -34,3 +34,15 @@ int list_fs_types(void);
extern char specname[];
extern int Cflag;
+
+#ifdef HAVE_NBTOOL_CONFIG_H
+static int
+dk_ioctl(int f, void *arg)
+{
+ errno = ENOTTY;
+ return -1;
+}
+# define dk_ioctl(f, cmd, arg) dk_ioctl(f, arg)
+#else
+# define dk_ioctl(f, cmd, arg) ioctl(f, cmd, arg)
+#endif /* HAVE_NBTOOL_CONFIG_H */