These are surely not required by anything, and are only stub functions
anyway so can easily be provided locally by anything that really does need
them. Also hide the declarations other than when building the core itself
as per the fix for [perl #114516].
if ($ARGS{PLATFORM} eq 'win32') {
try_symbols(qw(
- setgid
- setuid
win32_free_childdir
win32_free_childenv
win32_get_childdir
/* For UNIX compatibility. */
-extern int setuid(uid_t uid);
-extern int setgid(gid_t gid);
-
#ifdef PERL_CORE
extern uid_t getuid(void);
extern gid_t getgid(void);
extern uid_t geteuid(void);
extern gid_t getegid(void);
+extern int setuid(uid_t uid);
+extern int setgid(gid_t gid);
extern int kill(int pid, int sig);
extern int killpg(int pid, int sig);
#ifndef USE_PERL_SBRK