|
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 @@ charbackend_exec[MAXPGPATH];
|
147 | 147 | staticvoid*xmalloc(size_tsize);
|
148 | 148 | staticchar*xstrdup(constchar*s);
|
149 | 149 | staticchar**replace_token(char**lines,char*token,char*replacement);
|
150 |
| -#ifdefWIN32 |
| 150 | +#ifndefHAVE_UNIX_SOCKETS |
151 | 151 | staticchar**filter_lines_with_token(char**lines,char*token);
|
152 | 152 | #endif
|
153 | 153 | staticchar**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 |
| -#ifdefWIN32 |
| 321 | +#ifndefHAVE_UNIX_SOCKETS |
322 | 322 | staticchar**
|
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 |
| -#ifdefWIN32 |
1128 |
| -conflines=filter_lines_with_token(conflines,"@remove-line-for-win32@"); |
| 1127 | +#ifndefHAVE_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 | #ifndefHAVE_IPV6
|
|