]> granicus.if.org Git - postgresql/commitdiff
Properly use DEFAULT_EVENT_SOURCE in pgevent.c
authorMagnus Hagander <magnus@hagander.net>
Mon, 21 Jul 2014 10:24:00 +0000 (12:24 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 21 Jul 2014 10:24:00 +0000 (12:24 +0200)
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

src/bin/pgevent/pgevent.c

index 6a667812fba98e7a36038dbc0ffdf72ccd4d6eab..5332a13256d5955b5a991d58add9e8628c8bc563 100644 (file)
@@ -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);