From b15f9b08efb0665f0c145ebf928b7e11c0a602ed Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 24 Jun 2004 21:03:42 +0000 Subject: Replace direct fprintf(stderr) calls by write_stderr(), and cause this routine to do something appropriate on Win32. Also, add a security check on Win32 that parallels the can't-run-as-root check on Unix. Magnus Hagander --- src/include/port/win32.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include/port/win32.h') diff --git a/src/include/port/win32.h b/src/include/port/win32.h index c10eb078c4..28a583690d 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.25 2004/05/27 14:39:33 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.26 2004/06/24 21:03:33 tgl Exp $ */ /* undefine and redefine after #include */ #undef mkdir @@ -138,6 +138,10 @@ int pgwin32_recv(SOCKET s, char* buf, int len, int flags); int pgwin32_send(SOCKET s, char* buf, int len, int flags); const char *pgwin32_socket_strerror(int err); + +/* in backend/port/win32/security.c */ +extern int pgwin32_is_admin(void); +extern int pgwin32_is_service(void); #endif -- cgit v1.2.1