mike hagerty writes: 

> Has anyone build this on solaris yet.
> I cannot get it to build.
> Some wise person has made a struct with the same name as the getpw in
> stdlib.h 
> 
> any ideas on why this would only be a problem on solaris???

Because only Solaris defines this function? 

It's no big deal to rename this static func... 

-- 
Sam 

RCS file: /cvsroot/courier/libs/pcp/pcp.c,v
retrieving revision 1.2
diff -U3 -r1.2 pcp.c
--- pcp/pcp.c   2001/11/03 03:08:08     1.2
+++ pcp/pcp.c   2001/11/14 17:49:59
@@ -127,7 +127,7 @@
 
 static void usage();
 
-static struct passwd *getpw()
+static struct passwd *do_getpw()
 {
        struct passwd *pw=getpwuid(getuid());
 
@@ -142,7 +142,7 @@
 struct PCP *open_calendar()
 {
        struct PCP *pcp;
-       struct passwd *pw=getpw();
+       struct passwd *pw=do_getpw();
        char *p;
        const char *cp;
        FILE *fp;
@@ -1335,7 +1335,7 @@
 
 static void init(const char *shell)
 {
-       struct passwd *pw=getpw();
+       struct passwd *pw=do_getpw();
 
        if (chdir(pw->pw_dir))
        {
@@ -1386,7 +1386,7 @@
 
        if (pcp)
        {
-               struct passwd *pw=getpw();
+               struct passwd *pw=do_getpw();
                FILE *fp;
                const char *p=pcp_authtoken(pcp);
 

Reply via email to