ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/getpath.c
(Generate patch)

Comparing ray/src/common/getpath.c (file contents):
Revision 2.12 by schorsch, Mon Jun 30 14:59:11 2003 UTC vs.
Revision 2.13 by schorsch, Thu Jul 3 20:59:00 2003 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11  
12   #include  <string.h>
13   #include  <ctype.h>
14 < #ifndef  RHAS_GETPWNAM
14 > #ifdef   RHAS_GETPWNAM
15    #include  <pwd.h>
16    #include  <sys/types.h>
17   #endif
# Line 33 | Line 33 | register char  *searchpath,
33   int  mode
34   )
35   {
36 < #ifndef  RHAS_GETPWNAM
36 > #ifdef   RHAS_GETPWNAM
37          struct passwd  *pwent;
38   #endif
39          static char  pname[PATH_MAX];
# Line 64 | Line 64 | int  mode
64                                          strncat(pname, fname, sizeof(pname)-strlen(pname)-1);
65                                          break;
66                                  }
67 < #ifndef RHAS_GETPWNAM
67 > #ifdef RHAS_GETPWNAM
68                                  /* XXX Should we request our own home directory from the
69                                     XXX system as well if the above fails? */
70                                  /* XXX In any case, we need do the same thing on Windows... */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines