Commit 4c3c911d authored by Magnus Hagander's avatar Magnus Hagander

Properly use DEFAULT_EVENT_SOURCE in pgevent.c

This was broken and reverted in a previous commit. The (this time verified)
fix is to simly add postgres_fe.h.

MauMau, review by Amit Kapila
parent cac0d519
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
*/ */
#include "postgres_fe.h"
#include <windows.h> #include <windows.h>
#include <olectl.h> #include <olectl.h>
#include <string.h> #include <string.h>
...@@ -26,7 +28,7 @@ HANDLE g_module = NULL; /* hModule of DLL */ ...@@ -26,7 +28,7 @@ HANDLE g_module = NULL; /* hModule of DLL */
* The maximum length of a registry key is 255 characters. * The maximum length of a registry key is 255 characters.
* http://msdn.microsoft.com/en-us/library/ms724872(v=vs.85).aspx * http://msdn.microsoft.com/en-us/library/ms724872(v=vs.85).aspx
*/ */
char event_source[256] = "PostgreSQL"; char event_source[256] = DEFAULT_EVENT_SOURCE;
/* Prototypes */ /* Prototypes */
HRESULT DllInstall(BOOL bInstall, LPCWSTR pszCmdLine); HRESULT DllInstall(BOOL bInstall, LPCWSTR pszCmdLine);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment