summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2005-01-06 01:00:12 +0000
committerTom Lane2005-01-06 01:00:12 +0000
commitd97ae8230e0c5be122e71341fd65d3e3553ed010 (patch)
treed4b903a3f144b52e20cc5c0235177d12805a8817 /src/include
parentfdbeaaf90a07c6703ec482c3f1bb3fb04882a64f (diff)
Make the various places that determine the user's "home directory"
consistent. On Unix we now always consult getpwuid(); $HOME isn't used at all. On Windows the code currently consults $USERPROFILE, or $HOME if that's not defined, but I expect this will change as soon as the win32 hackers come to a consensus. Nothing done yet about changing the file names used underneath $USERPROFILE.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/port.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/include/port.h b/src/include/port.h
index 603361ad9b8..54984fe437c 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/port.h,v 1.68 2004/12/31 22:03:19 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/port.h,v 1.69 2005/01/06 00:59:25 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -98,12 +98,6 @@ extern int find_other_exec(const char *argv0, const char *target,
#define SYSTEMQUOTE ""
#endif
-#if defined(WIN32) && !defined(__CYGWIN__)
-#define HOMEDIR "USERPROFILE"
-#else
-#define HOMEDIR "HOME"
-#endif
-
/* Portable delay handling */
extern void pg_usleep(long microsec);