From 8bc4864d9a9951b461ec6cb34ec4a8abbd56aeba Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 10 Jun 2014 18:23:21 -0700 Subject: [PATCH] GUAC-730: Add stddef.h to generated keymaps. Fix perl warning while we're at it. --- src/protocols/rdp/keymaps/generate.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/protocols/rdp/keymaps/generate.pl b/src/protocols/rdp/keymaps/generate.pl index 2846005a..50fe461a 100755 --- a/src/protocols/rdp/keymaps/generate.pl +++ b/src/protocols/rdp/keymaps/generate.pl @@ -32,9 +32,9 @@ use 5.008; sub keymap_symbol { - my $_ = shift; - s/-/_/g; - return 'guac_rdp_keymap_' . $_; + my $name = shift; + $name =~ s/-/_/g; + return 'guac_rdp_keymap_' . $name; } # @@ -54,6 +54,8 @@ print OUTPUT . '#else' . "\n" . '#include ' . "\n" . '#endif' . "\n" + . "\n" + . '#include ' . "\n" . "\n"; for my $filename (@ARGV) {