66 * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77 * Portions Copyright (c) 1994, Regents of the University of California
88 *
9- * $PostgreSQL: pgsql/src/include/port.h,v 1.53 2004/08/17 14:38:38 momjian Exp $
9+ * $PostgreSQL: pgsql/src/include/port.h,v 1.54 2004/08/18 02:59:11 momjian Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
@@ -50,6 +50,7 @@ extern void get_lib_path(const char *my_exec_path, char *ret_path);
5050extern void get_pkglib_path (const char * my_exec_path ,char * ret_path );
5151extern void get_locale_path (const char * my_exec_path ,char * ret_path );
5252extern void set_pglocale_pgservice (const char * argv0 ,const char * app );
53+ extern bool get_home_path (char * ret_path );
5354
5455/*
5556 *is_absolute_path
@@ -74,9 +75,6 @@ extern void set_pglocale_pgservice(const char *argv0, const char *app);
7475#endif
7576
7677
77-
78-
79-
8078/* Portable way to find binaries */
8179extern int find_my_exec (const char * argv0 ,char * retpath );
8280extern int find_other_exec (const char * argv0 ,const char * target ,
@@ -104,6 +102,12 @@ extern int find_other_exec(const char *argv0, const char *target,
104102#define SYSTEMQUOTE ""
105103#endif
106104
105+ #ifdef WIN32
106+ #define HOMEDIR "USERPROFILE"
107+ #else
108+ #define HOMEDIR "HOME"
109+ #endif
110+
107111/* Portable delay handling */
108112extern void pg_usleep (long microsec );
109113