SDL: wikiheaders: Manpages go in man3 directory, even if they're 3type.

From 9210c68c443248161c5d0c6edbffc7d8f7b14126 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 30 Apr 2024 21:21:04 -0400
Subject: [PATCH] wikiheaders: Manpages go in man3 directory, even if they're
 3type.

---
 build-scripts/wikiheaders.pl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl
index 1357dd7eaf149..687a7efc4f732 100755
--- a/build-scripts/wikiheaders.pl
+++ b/build-scripts/wikiheaders.pl
@@ -1766,7 +1766,6 @@ sub print_undocumented_section {
     # This only takes from the wiki data, since it has sections we omit from the headers, like code examples.
 
     File::Path::make_path("$manpath/man3");
-    File::Path::make_path("$manpath/man3type");
 
     $dewikify_mode = 'manpage';
     $wordwrap_mode = 'manpage';
@@ -2030,7 +2029,7 @@ sub print_undocumented_section {
         $str .= ".UE\n";
         }
 
-        my $path = "$manpath/man$mansection/$_.$mansection";
+        my $path = "$manpath/man3/$_.$mansection";
         my $tmppath = "$path.tmp";
         open(FH, '>', $tmppath) or die("Can't open '$tmppath': $!\n");
         print FH $str;