|
39 | 39 | * Portions Copyright (c) 1994, Regents of the University of California
|
40 | 40 | * Portions taken from FreeBSD.
|
41 | 41 | *
|
42 |
| - * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.55 2004/10/06 09:01:18 momjian Exp $ |
| 42 | + * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.56 2004/10/06 09:13:10 momjian Exp $ |
43 | 43 | *
|
44 | 44 | *-------------------------------------------------------------------------
|
45 | 45 | */
|
@@ -147,7 +147,7 @@ char backend_exec[MAXPGPATH];
|
147 | 147 | static void *xmalloc(size_t size);
|
148 | 148 | static char *xstrdup(const char *s);
|
149 | 149 | static char **replace_token(char **lines, char *token, char *replacement);
|
150 |
| -#ifdef WIN32 |
| 150 | +#ifndef HAVE_UNIX_SOCKETS |
151 | 151 | static char **filter_lines_with_token(char **lines, char *token);
|
152 | 152 | #endif
|
153 | 153 | static char **readfile(char *path);
|
@@ -318,7 +318,7 @@ replace_token(char **lines, char *token, char *replacement)
|
318 | 318 | * a sort of poor man's grep -v
|
319 | 319 | *
|
320 | 320 | */
|
321 |
| -#ifdef WIN32 |
| 321 | +#ifndef HAVE_UNIX_SOCKETS |
322 | 322 | static char **
|
323 | 323 | filter_lines_with_token(char **lines, char *token)
|
324 | 324 | {
|
@@ -1124,10 +1124,10 @@ setup_config(void)
|
1124 | 1124 |
|
1125 | 1125 | conflines = readfile(hba_file);
|
1126 | 1126 |
|
1127 |
| -#ifdef WIN32 |
1128 |
| - conflines = filter_lines_with_token(conflines,"@remove-line-for-win32@"); |
| 1127 | +#ifndef HAVE_UNIX_SOCKETS |
| 1128 | + conflines = filter_lines_with_token(conflines,"@remove-line-for-nolocal@"); |
1129 | 1129 | #else
|
1130 |
| - conflines = replace_token(conflines,"@remove-line-for-win32@",""); |
| 1130 | + conflines = replace_token(conflines,"@remove-line-for-nolocal@",""); |
1131 | 1131 | #endif
|
1132 | 1132 |
|
1133 | 1133 | #ifndef HAVE_IPV6
|
|
0 commit comments