We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7f6da7 commit 7bc7039Copy full SHA for 7bc7039
src/syscall/mksyscall.pl
@@ -33,6 +33,7 @@
33
my $libc = 0;
34
my $tags = ""; # build tags
35
my $newtags = ""; # new style build tags
36
+my $stdimports = 'import "unsafe"';
37
my $extraimports = "";
38
39
if($ARGV[0] eq "-b32") {
@@ -390,6 +391,10 @@ ($)
390
391
exit 1;
392
}
393
394
+if($extraimports ne "") {
395
+ $stdimports .= "\n$extraimports";
396
+}
397
+
398
# TODO: this assumes tags are just simply comma separated. For now this is all the uses.
399
$newtags = $tags =~ s/,/ && /r;
400
@@ -401,8 +406,7 @@ ($)
401
406
402
407
package syscall
403
408
404
-import "unsafe"
405
-$extraimports
409
+$stdimports
410
411
$text
412
EOF
0 commit comments