aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2014-07-21 12:24:00 +0200
committerMagnus Hagander <magnus@hagander.net>2014-07-21 12:24:00 +0200
commit4c3c911d26b3944946f8d9b03dbead3ccdf73b19 (patch)
tree70f0fa83d1c09df9cad421a03206560715d0f7e6 /src
parentcac0d5193bd56dd6ffb70b9fb5a959eedeca01d3 (diff)
downloadpostgresql-4c3c911d26b3944946f8d9b03dbead3ccdf73b19.tar.gz
postgresql-4c3c911d26b3944946f8d9b03dbead3ccdf73b19.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/bin/pgevent/pgevent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/pgevent/pgevent.c b/src/bin/pgevent/pgevent.c
index 6a667812fba..5332a13256d 100644
--- a/src/bin/pgevent/pgevent.c
+++ b/src/bin/pgevent/pgevent.c
@@ -12,6 +12,8 @@
*/
+#include "postgres_fe.h"
+
#include <windows.h>
#include <olectl.h>
#include <string.h>
@@ -26,7 +28,7 @@ HANDLE g_module = NULL; /* hModule of DLL */
* The maximum length of a registry key is 255 characters.
* 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 */
HRESULT DllInstall(BOOL bInstall, LPCWSTR pszCmdLine);