summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2023-09-07 01:08:37 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2023-09-07 01:08:37 +0000
commitf7aede44f102ea5a2988d9082a8849546c47c2bb (patch)
tree5c9c651dec5c5a0188dcf2903a263a6d3471c3df /gnu
parent03c36d7d2655a898cab070e225b7e4c90f2ccdce (diff)
Fix missing function declarations to let mkhybrid build with clang-16
ok millert@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.sbin/mkhybrid/src/desktop.c2
-rw-r--r--gnu/usr.sbin/mkhybrid/src/mac_label.c3
-rw-r--r--gnu/usr.sbin/mkhybrid/src/volume.c5
3 files changed, 10 insertions, 0 deletions
diff --git a/gnu/usr.sbin/mkhybrid/src/desktop.c b/gnu/usr.sbin/mkhybrid/src/desktop.c
index 62ca669255d..40e258d51bd 100644
--- a/gnu/usr.sbin/mkhybrid/src/desktop.c
+++ b/gnu/usr.sbin/mkhybrid/src/desktop.c
@@ -36,6 +36,8 @@
/* from "data.h" - libhfs routines */
void d_putw(unsigned char *, short);
void d_putl(unsigned char *, long);
+/* from volume.c */
+void write_fork(hfsfile *, long);
extern hce_mem *hce; /* libhfs/mkisofs extras */
diff --git a/gnu/usr.sbin/mkhybrid/src/mac_label.c b/gnu/usr.sbin/mkhybrid/src/mac_label.c
index 0cffafb5285..1e594c1be2d 100644
--- a/gnu/usr.sbin/mkhybrid/src/mac_label.c
+++ b/gnu/usr.sbin/mkhybrid/src/mac_label.c
@@ -24,6 +24,9 @@
#include "mac_label_proto.h"
#include <mac_label.h>
+/* from libhfs_iso/data.h */
+short d_getw(unsigned char *);
+
int
gen_mac_label(defer *mac_boot)
{
diff --git a/gnu/usr.sbin/mkhybrid/src/volume.c b/gnu/usr.sbin/mkhybrid/src/volume.c
index 6f445bac08d..3dc4880c537 100644
--- a/gnu/usr.sbin/mkhybrid/src/volume.c
+++ b/gnu/usr.sbin/mkhybrid/src/volume.c
@@ -19,6 +19,11 @@
#include "write.h"
#include <errno.h>
+/* from desktop.c */
+int make_desktop(hfsvol *, int);
+/* from libhfs_iso/hfs.c */
+void hfs_vsetbless(hfsvol *, unsigned long);
+
static hfsvol *vol_save = 0; /* used to "destroy" an HFS volume */
int DECL(copy_to_mac_vol, (hfsvol *, struct directory *));