summaryrefslogtreecommitdiff
path: root/sysutils/syslinux/files/patch-libinstaller-bin2c.pl
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2010-11-18 17:42:52 +0000
committerMartin Matuska <mm@FreeBSD.org>2010-11-18 17:42:52 +0000
commitc5912aade0fa8db9f4220f524f3277b947517d4c (patch)
tree2eac0a46120f84eee02514da1b0a4067cff2d46a /sysutils/syslinux/files/patch-libinstaller-bin2c.pl
parentX-tile is a gnome applet for your panel (or optionally a standalone (diff)
- Unbreak and update to 4.03
- Fix and rename patches to match file names - Depend on perl5 only during build - Make portlint happy - Replace with sed and do it in pre-patch stage - Use DATADIR and MANPREFIX PR: ports/152300 Approved by: luigi (maintainer, private e-mail)
Notes
Notes: svn path=/head/; revision=264784
Diffstat (limited to 'sysutils/syslinux/files/patch-libinstaller-bin2c.pl')
-rw-r--r--sysutils/syslinux/files/patch-libinstaller-bin2c.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/syslinux/files/patch-libinstaller-bin2c.pl b/sysutils/syslinux/files/patch-libinstaller-bin2c.pl
new file mode 100644
index 000000000000..055f9c0fbea6
--- /dev/null
+++ b/sysutils/syslinux/files/patch-libinstaller-bin2c.pl
@@ -0,0 +1,18 @@
+--- libinstaller/bin2c.pl.orig 2010-10-20 21:25:38.000000000 +0200
++++ libinstaller/bin2c.pl 2010-11-16 14:24:32.427122941 +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 "\nconst int %s_mtime = %d;\n", $table_name, $st[9];
++printf "\nunsigned char *%s = _%s;\n", $table_name, $table_name;
+
+ exit 0;