Skip to content

Commit ed03997

Browse files
wangzwfanfuxiaoran
authored andcommitted
Fix include issue for gpmmon and gpsmon
1 parent 53ec506 commit ed03997

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

contrib/perfmon/src/gpmmon/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MODULE_big = gpmmon
44
OBJS = gpmmon.o gpmondb.o gpmon_agg.o ../common/gpmonlib.o
55
SHLIB_LINK += -levent -lapr-1 -laprutil-1 -lm
66
PG_CFLAGS += -Wno-error=vla -Wno-vla
7-
PG_CPPFLAGS = -I$(libpq_srcdir) -I../include
7+
PG_CPPFLAGS = -I$(libpq_srcdir) -I../include $(apr_includes)
88
SHLIB_LINK_INTERNAL = -Wl,-Bsymbolic -Wl,-Bstatic -Wl,-Bstatic $(libpq) -lpgcommon_shlib -Wl,-Bdynamic
99

1010
ifdef USE_PGXS

contrib/perfmon/src/gpsmon/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
top_builddir = ../../../..
22

3-
PG_CPPFLAGS = -I$(libpq_srcdir) -I../include -I. -Wno-error=vla -Wno-vla
3+
PG_CPPFLAGS = -I$(libpq_srcdir) -I../include -I. $(apr_includes) -Wno-error=vla -Wno-vla -Wno-unused-result
44
ifdef USE_PGXS
55
PG_CONFIG = pg_config
66
PGXS := $(shell $(PG_CONFIG) --pgxs)

0 commit comments

Comments
 (0)