aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/utils/Makefile b/src/backend/utils/Makefile
index 966e3bc2ed3..e797539d09c 100644
--- a/src/backend/utils/Makefile
+++ b/src/backend/utils/Makefile
@@ -49,10 +49,15 @@ ifneq ($(enable_dtrace), yes)
probes.h: Gen_dummy_probes.sed
endif
+# We editorialize on dtrace's output to the extent of changing the macro
+# names (from POSTGRESQL_foo to TRACE_POSTGRESQL_foo) and changing any
+# "char *" arguments to "const char *".
probes.h: probes.d
ifeq ($(enable_dtrace), yes)
$(DTRACE) -C -h -s $< -o $@.tmp
- sed -e 's/POSTGRESQL_/TRACE_POSTGRESQL_/g' $@.tmp >$@
+ sed -e 's/POSTGRESQL_/TRACE_POSTGRESQL_/g' \
+ -e 's/( *char \*/(const char */g' \
+ -e 's/, *char \*/, const char */g' $@.tmp >$@
rm $@.tmp
else
sed -f $(srcdir)/Gen_dummy_probes.sed $< >$@