summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-05 11:09:01 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-05 11:09:01 +0000
commitfa0a29af51ee3f14fc1952c7be0fe20aab57637f (patch)
treed1363884d9fdcf447f22a5b4e832e02ea390bb4d /perl.h
parenta87ab2ebad5f814f5d93f568156eb348cfb1a1a3 (diff)
downloadperl-fa0a29af51ee3f14fc1952c7be0fe20aab57637f.tar.gz
Make up prototypes only for those who have the functions
but not the prototypes. p4raw-id: //depot/perl@10444
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/perl.h b/perl.h
index 5bd891ca7d..08f00f10cc 100644
--- a/perl.h
+++ b/perl.h
@@ -506,12 +506,12 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
# include <unistd.h>
#endif
-#ifndef HAS_SYSCALL_PROTO
+#if defined(HAS_SYSCALL) && !defined(HAS_SYSCALL_PROTO)
int syscall(int, ...);
#endif
-#ifndef HAS_USLEEP_PROTO
-int usleep(unsigned);
+#if defined(HAS_USLEEP) && !defined(HAS_USLEEP_PROTO)
+int usleep(unsigned int);
#endif
#ifdef PERL_MICRO /* Last chance to export Perl_my_swap */
@@ -765,9 +765,9 @@ typedef struct perl_mstats perl_mstats_t;
# endif
#endif
-/* sockatmark() is so new that many places might have it hidden
+/* sockatmark() is so new (2001) that many places might have it hidden
* behind some -D_BLAH_BLAH_SOURCE guard. */
-#ifndef HAS_SOCKATMARK_PROTO
+#if defined(HAS_SOCKATMARK) && !defined(HAS_SOCKATMARK_PROTO)
int sockatmark(int);
#endif
@@ -2485,10 +2485,12 @@ I32 unlnk (char*);
#define UNLINK PerlLIO_unlink
#endif
-#ifndef HAS_SETRESUID_PROTO /* some versions of glibc */
+/* some versions of glibc are missing the setresuid() proto */
+#if defined(HAS_SETRESUID) && !defined(HAS_SETRESUID_PROTO)
int setresuid(uid_t ruid, uid_t euid, uid_t suid);
#endif
-#ifndef HAS_SETRESGID_PROTO /* some versions of glibc */
+/* some versions of glibc are missing the setresgid() proto */
+#if defined(HAS_SETRESGID) && !defined(HAS_SETRESGID_PROTO)
int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
#endif
@@ -3657,7 +3659,7 @@ typedef struct am_table_short AMTS;
# include <sys/file.h>
#endif
-#ifndef HAS_FLOCK_PROTO
+#if defined(HAS_FLOCK) && !defined(HAS_FLOCK_PROTO)
int flock(int fd, int op);
#endif