From: Jarkko Hietaniemi Date: Mon, 4 Jun 2001 02:19:58 +0000 (+0000) Subject: Missed HAS_SETRESGID_PROTO. No serious harm done since X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eef837ea0c553e009f33fedc28b7eec6c571999c;p=p5sagit%2Fp5-mst-13.2.git Missed HAS_SETRESGID_PROTO. No serious harm done since often this prototype goes with HAS_SETRESUID_PROTO. p4raw-id: //depot/perl@10420 --- diff --git a/Configure b/Configure index 4fc8f00..0c3bcd5 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Sat Jun 2 17:25:04 EET DST 2001 [metaconfig 3.0 PL70] +# Generated on Mon Jun 4 06:11:38 EET DST 2001 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ < header file. In older versions of DB, it was * int, while in newer ones it is size_t. */ +/* DB_VERSION_MAJOR_CFG: + * This symbol, if defined, defines the major version number of + * Berkeley DB found in the header when Perl was configured. + */ +/* DB_VERSION_MINOR_CFG: + * This symbol, if defined, defines the minor version number of + * Berkeley DB found in the header when Perl was configured. + * For DB version 1 this is always 0. + */ +/* DB_VERSION_PATCH_CFG: + * This symbol, if defined, defines the patch version number of + * Berkeley DB found in the header when Perl was configured. + * For DB version 1 this is always 0. + */ #define DB_Hash_t u_int32_t /**/ #define DB_Prefix_t size_t /**/ +#define DB_VERSION_MAJOR_CFG 1 /**/ +#define DB_VERSION_MINOR_CFG 0 /**/ +#define DB_VERSION_PATCH_CFG 0 /**/ /* I_GRP: * This symbol, if defined, indicates to the C program that it should @@ -3338,6 +3355,14 @@ */ /*#define HAS_SOCKATMARK / **/ +/* HAS_SETRESGID_PROTO: + * This symbol, if defined, indicates that the system provides + * a prototype for the setresgid() function. Otherwise, it is up + * to the program to supply one. Good guesses are + * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid); + */ +/*#define HAS_SETRESGID_PROTO / **/ + /* HAS_SETRESUID_PROTO: * This symbol, if defined, indicates that the system provides * a prototype for the setresuid() function. Otherwise, it is up diff --git a/config_h.SH b/config_h.SH index 328ad4b..3f1009c 100644 --- a/config_h.SH +++ b/config_h.SH @@ -3375,6 +3375,14 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_sockatmark HAS_SOCKATMARK /**/ +/* HAS_SETRESGID_PROTO: + * This symbol, if defined, indicates that the system provides + * a prototype for the setresgid() function. Otherwise, it is up + * to the program to supply one. Good guesses are + * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid); + */ +#$d_sresgproto HAS_SETRESGID_PROTO /**/ + /* HAS_SETRESUID_PROTO: * This symbol, if defined, indicates that the system provides * a prototype for the setresuid() function. Otherwise, it is up diff --git a/configure.com b/configure.com index c54e654..56c2000 100644 --- a/configure.com +++ b/configure.com @@ -5219,6 +5219,7 @@ $ WC "d_socklen_t='" + d_socklen_t + "'" $ WC "d_sockpair='undef'" $ WC "d_socks5_init='undef'" $ WC "d_sqrtl='define'" +$ WC "d_sresgproto='undef'" $ WC "d_sresuproto='undef'" $ WC "d_statblks='undef'" $ WC "d_statfs_f_flags='undef'" diff --git a/perl.h b/perl.h index 4656c3a..69579d8 100644 --- a/perl.h +++ b/perl.h @@ -2474,7 +2474,7 @@ I32 unlnk (char*); #ifndef HAS_SETRESUID_PROTO /* some versions of glibc */ int setresuid(uid_t ruid, uid_t euid, uid_t suid); #endif -#ifndef HAS_SETRESUID_PROTO /* some versions of glibc */ +#ifndef HAS_SETRESGID_PROTO /* some versions of glibc */ int setresgid(gid_t rgid, gid_t egid, gid_t sgid); #endif diff --git a/uconfig.h b/uconfig.h index fa0d8b0..9eff617 100644 --- a/uconfig.h +++ b/uconfig.h @@ -3351,6 +3351,14 @@ */ /*#define HAS_SOCKATMARK / **/ +/* HAS_SETRESGID_PROTO: + * This symbol, if defined, indicates that the system provides + * a prototype for the setresgid() function. Otherwise, it is up + * to the program to supply one. Good guesses are + * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid); + */ +/*#define HAS_SETRESGID_PROTO / **/ + /* HAS_SETRESUID_PROTO: * This symbol, if defined, indicates that the system provides * a prototype for the setresuid() function. Otherwise, it is up