diff --git a/slirp/libslirp.h b/slirp/libslirp.h
index ac3df78..a1cd70e 100644
--- a/slirp/libslirp.h
+++ b/slirp/libslirp.h
@@ -25,6 +25,7 @@ int slirp_add_exec(int do_pty, const void *args, int addr_low_byte,
 
 extern const char *tftp_prefix;
 extern char slirp_hostname[33];
+extern const char *bootp_filename;
 
 void slirp_stats(void);
 void slirp_socket_recv(int addr_low_byte, int guest_port, const uint8_t *buf,
diff --git a/sysemu.h b/sysemu.h
index e94d5c3..2b1677c 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -103,7 +103,6 @@ extern int graphic_rotate;
 extern int no_quit;
 extern int semihosting_enabled;
 extern int old_param;
-extern const char *bootp_filename;
 
 #ifdef USE_KQEMU
 extern int kqemu_allowed;