summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2012-10-05 08:26:40 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2012-10-05 08:26:40 +0100
commit0c38a575805726e13941c02d1cdf5b6b5c4ded11 (patch)
treeafb16fd6c55c84e1fec0b90e95484e91fba85a54 /win32/win32.h
parent76445bb00ac5ac3b195e659b56c470daff0d3c7d (diff)
downloadperl-0c38a575805726e13941c02d1cdf5b6b5c4ded11.tar.gz
Remove exports of dummy set[ug]id functions on Windows
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].
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 918b4895c6..489fbf4425 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -261,14 +261,13 @@ START_EXTERN_C
/* 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