freebsd-ports/sysutils/syslinux/files/patch-2
Luigi Rizzo c7564382f2 The syslinux program installs a linux bootloader on a FAT-formatted
filesystem or disk image.
This FreeBSD port can additionally operate on plain files containing
a FAT image, thus requiring no special privilege. The program relies
on mtools to perform the manipulation of the FAT filesystem.

WWW: http://syslinux.zytor.com/
2008-12-31 11:43:34 +00:00

41 lines
1.4 KiB
Text

diff -ubwr ../../work/syslinux-3.72/libinstaller/bin2c.pl ./libinstaller/bin2c.pl
--- ../../work/syslinux-3.72/libinstaller/bin2c.pl 2008-09-26 01:46:02.000000000 +0200
+++ ./libinstaller/bin2c.pl 2008-11-26 13:32:45.000000000 +0100
@@ -27,7 +27,7 @@
$pad = 1 if ($pad < 1);
-printf "unsigned char %s[] = {\n", $table_name;
+printf "static unsigned char _%s[] = {\n", $table_name;
$pos = 0;
$linelen = 8;
@@ -74,5 +74,6 @@
@st = stat STDIN;
printf "\nint %s_mtime = %d;\n", $table_name, $st[9];
+printf "\nunsigned char *%s = _%s;\n", $table_name, $table_name;
exit 0;
diff -ubwr ../../work/syslinux-3.72/libinstaller/syslinux.h ./libinstaller/syslinux.h
--- ../../work/syslinux-3.72/libinstaller/syslinux.h 2008-09-26 01:46:02.000000000 +0200
+++ ./libinstaller/syslinux.h 2008-11-26 13:32:23.000000000 +0100
@@ -17,15 +17,15 @@
#include "advconst.h"
/* The standard boot sector and ldlinux image */
-extern unsigned char syslinux_bootsect[];
+extern unsigned char *syslinux_bootsect;
extern unsigned int syslinux_bootsect_len;
extern int syslinux_bootsect_mtime;
-extern unsigned char syslinux_ldlinux[];
+extern unsigned char *syslinux_ldlinux;
extern unsigned int syslinux_ldlinux_len;
extern int syslinux_ldlinux_mtime;
-extern unsigned char syslinux_mbr[];
+extern unsigned char *syslinux_mbr;
extern unsigned int syslinux_mbr_len;
extern int syslinux_mbr_mtime;