Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GCC 4.7 requires variable declaration before use.
- Loading branch information
marino
committed
Oct 8, 2012
1 parent
75ff1fd
commit ec4f951
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$NetBSD: patch-src_modules_perl_perl__util.c,v 1.1 2012/10/08 11:49:40 marino Exp $ | ||
|
||
GCC 4.7 requires variable declaration before use. | ||
|
||
--- src/modules/perl/perl_util.c.orig 2007-12-03 07:19:59.000000000 +0000 | ||
+++ src/modules/perl/perl_util.c | ||
@@ -670,6 +670,7 @@ void mod_perl_init_ids(void) /* $$, $>, | ||
if(set_ids++) return; | ||
sv_setiv(GvSV(gv_fetchpv("$", TRUE, SVt_PV)), (I32)getpid()); | ||
#ifndef WIN32 | ||
+ int uid, euid, gid, egid; | ||
uid = (int)getuid(); | ||
euid = (int)geteuid(); | ||
gid = (int)getgid(); |